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

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

Issue 670173002: Fix webrequest api for webview in webui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rename EmbedderDestroyed to EmbedderWillBeDestroyed Created 6 years, 1 month 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
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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 49
50 // Called just after additional initialization is performed. 50 // Called just after additional initialization is performed.
51 virtual void OnDidInitialize() = 0; 51 virtual void OnDidInitialize() = 0;
52 52
53 virtual void OnDocumentLoadedInFrame( 53 virtual void OnDocumentLoadedInFrame(
54 content::RenderFrameHost* render_frame_host) = 0; 54 content::RenderFrameHost* render_frame_host) = 0;
55 55
56 // Called immediately after the guest WebContents is ready. 56 // Called immediately after the guest WebContents is ready.
57 virtual void OnGuestReady() = 0; 57 virtual void OnGuestReady() = 0;
58 58
59 // Called before the embedder is destroyed.
60 virtual void OnEmbedderWillBeDestroyed() = 0;
61
59 // Called immediately after the guest WebContents has been destroyed. 62 // Called immediately after the guest WebContents has been destroyed.
60 virtual void OnGuestDestroyed() = 0; 63 virtual void OnGuestDestroyed() = 0;
61 64
62 // Called when to set the zoom factor. 65 // Called when to set the zoom factor.
63 virtual void OnSetZoom(double zoom_factor) = 0; 66 virtual void OnSetZoom(double zoom_factor) = 0;
64 67
65 // Shows the context menu for the guest. 68 // Shows the context menu for the guest.
66 // |items| acts as a filter. This restricts the current context's default 69 // |items| acts as a filter. This restricts the current context's default
67 // menu items to contain only the items from |items|. 70 // menu items to contain only the items from |items|.
68 // |items| == NULL means no filtering will be applied. 71 // |items| == NULL means no filtering will be applied.
69 virtual void OnShowContextMenu( 72 virtual void OnShowContextMenu(
70 int request_id, 73 int request_id,
71 const MenuItemVector* items) = 0; 74 const MenuItemVector* items) = 0;
72 }; 75 };
73 76
74 } // namespace extensions 77 } // namespace extensions
75 78
76 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_ 79 #endif // EXTENSIONS_BROWSER_GUEST_VIEW_WEB_VIEW_WEB_VIEW_GUEST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698