Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / extensions / browser / guest_view / mime_handler_view / mime_handler_view_guest_delegate.h
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_DELEGATE_H_
7
8 #include "base/macros.h"
9
10 namespace content {
11 class WebContents;
12 }  // namespace content
13
14 namespace extensions {
15
16 class MimeHandlerViewGuest;
17
18 // A delegate class of MimeHandlerViewGuest that are not a part of chrome.
19 class MimeHandlerViewGuestDelegate {
20  public:
21   explicit MimeHandlerViewGuestDelegate(MimeHandlerViewGuest* guest) {}
22   virtual ~MimeHandlerViewGuestDelegate() {}
23
24   // Attaches helpers upon initializing the WebContents.
25   virtual void AttachHelpers() {}
26
27   // Request to change the zoom level of the top level page containing
28   // this view.
29   virtual void ChangeZoom(bool zoom_in) {}
30
31  private:
32   DISALLOW_COPY_AND_ASSIGN(MimeHandlerViewGuestDelegate);
33 };
34
35 }  // namespace extensions
36
37 #endif  // EXTENSIONS_BROWSER_GUEST_VIEW_MIME_HANDLER_VIEW_MIME_HANDLER_VIEW_GUEST_DELEGATE_H_