| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |