Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: extensions/browser/guest_view/web_view/web_view_guest_delegate.h

Issue 598163003: <webview>: Zooming the embedder should zoom the guest by the same level. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed spacing Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ 5 #ifndef EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_
6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ 6 #define EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_
7 7
8 #include "extensions/browser/guest_view/guest_view_base.h" 8 #include "extensions/browser/guest_view/guest_view_base.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 25 matching lines...) Expand all
36 36
37 // Called when context menu operation was handled. 37 // Called when context menu operation was handled.
38 virtual bool HandleContextMenu(const content::ContextMenuParams& params) = 0; 38 virtual bool HandleContextMenu(const content::ContextMenuParams& params) = 0;
39 39
40 // Called to attach helpers just after additional initialization is performed. 40 // Called to attach helpers just after additional initialization is performed.
41 virtual void OnAttachWebViewHelpers(content::WebContents* contents) = 0; 41 virtual void OnAttachWebViewHelpers(content::WebContents* contents) = 0;
42 42
43 // Called to perform some cleanup prior to destruction. 43 // Called to perform some cleanup prior to destruction.
44 virtual void OnEmbedderDestroyed() = 0; 44 virtual void OnEmbedderDestroyed() = 0;
45 45
46 // Called after the guest has been attached to an embedder and suspended
47 // resource loads have been resumed.
48 virtual void OnDidAttachToEmbedder() = 0;
49
46 // Called when the guest WebContents commits a provisional load in any frame. 50 // Called when the guest WebContents commits a provisional load in any frame.
47 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0; 51 virtual void OnDidCommitProvisionalLoadForFrame(bool is_main_frame) = 0;
48 52
49 // Called just after additional initialization is performed. 53 // Called just after additional initialization is performed.
50 virtual void OnDidInitialize() = 0; 54 virtual void OnDidInitialize() = 0;
51 55
52 virtual void OnDocumentLoadedInFrame( 56 virtual void OnDocumentLoadedInFrame(
53 content::RenderFrameHost* render_frame_host) = 0; 57 content::RenderFrameHost* render_frame_host) = 0;
54 58
55 // Called immediately after the guest WebContents has been destroyed. 59 // Called immediately after the guest WebContents has been destroyed.
56 virtual void OnGuestDestroyed() = 0; 60 virtual void OnGuestDestroyed() = 0;
57 61
58 // Called when to set the zoom factor. 62 // Called when to set the zoom factor.
59 virtual void OnSetZoom(double zoom_factor) = 0; 63 virtual void OnSetZoom(double zoom_factor) = 0;
60 64
61 // Shows the context menu for the guest. 65 // Shows the context menu for the guest.
62 // |items| acts as a filter. This restricts the current context's default 66 // |items| acts as a filter. This restricts the current context's default
63 // menu items to contain only the items from |items|. 67 // menu items to contain only the items from |items|.
64 // |items| == NULL means no filtering will be applied. 68 // |items| == NULL means no filtering will be applied.
65 virtual void OnShowContextMenu( 69 virtual void OnShowContextMenu(
66 int request_id, 70 int request_id,
67 const MenuItemVector* items) = 0; 71 const MenuItemVector* items) = 0;
68 }; 72 };
69 73
70 } // namespace extensions 74 } // namespace extensions
71 75
72 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ 76 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_
OLDNEW
« no previous file with comments | « extensions/browser/guest_view/web_view/web_view_guest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698