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

Side by Side Diff: chrome/browser/guest_view/web_view/chrome_web_view_guest_delegate.h

Issue 525793002: Make WebContentsObserver::web_contents() public (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments addressed Created 6 years, 3 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
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 CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 6 #define CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
7 7
8 #include "chrome/browser/extensions/api/web_view/web_view_internal_api.h" 8 #include "chrome/browser/extensions/api/web_view/web_view_internal_api.h"
9 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h" 9 #include "chrome/browser/guest_view/web_view/web_view_find_helper.h"
10 #include "extensions/browser/guest_view/web_view/web_view_guest.h" 10 #include "extensions/browser/guest_view/web_view/web_view_guest.h"
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 int request_id, 54 int request_id,
55 const MenuItemVector* items) OVERRIDE; 55 const MenuItemVector* items) OVERRIDE;
56 virtual void StopFinding(content::StopFindAction) OVERRIDE; 56 virtual void StopFinding(content::StopFindAction) OVERRIDE;
57 57
58 private: 58 private:
59 friend void extensions::WebViewFindHelper::DispatchFindUpdateEvent( 59 friend void extensions::WebViewFindHelper::DispatchFindUpdateEvent(
60 bool canceled, 60 bool canceled,
61 bool final_update); 61 bool final_update);
62 62
63 content::WebContents* guest_web_contents() const { 63 content::WebContents* guest_web_contents() const {
64 return web_view_guest()->guest_web_contents(); 64 return web_view_guest()->web_contents();
65 } 65 }
66 66
67 // Returns the top level items (ignoring submenus) as Value. 67 // Returns the top level items (ignoring submenus) as Value.
68 static scoped_ptr<base::ListValue> MenuModelToValue( 68 static scoped_ptr<base::ListValue> MenuModelToValue(
69 const ui::SimpleMenuModel& menu_model); 69 const ui::SimpleMenuModel& menu_model);
70 70
71 void InjectChromeVoxIfNeeded(content::RenderViewHost* render_view_host); 71 void InjectChromeVoxIfNeeded(content::RenderViewHost* render_view_host);
72 72
73 #if defined(OS_CHROMEOS) 73 #if defined(OS_CHROMEOS)
74 // Notification of a change in the state of an accessibility setting. 74 // Notification of a change in the state of an accessibility setting.
(...skipping 22 matching lines...) Expand all
97 // Subscription to receive notifications on changes to a11y settings. 97 // Subscription to receive notifications on changes to a11y settings.
98 scoped_ptr<chromeos::AccessibilityStatusSubscription> 98 scoped_ptr<chromeos::AccessibilityStatusSubscription>
99 accessibility_subscription_; 99 accessibility_subscription_;
100 #endif 100 #endif
101 101
102 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); 102 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate);
103 }; 103 };
104 104
105 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ 105 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_
106 106
OLDNEW
« no previous file with comments | « chrome/browser/guest_view/extension_options/extension_options_guest.cc ('k') | chrome/browser/infobars/infobar_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698