| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
| 10 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" | 10 #include "chrome/browser/extensions/api/web_view/chrome_web_view_internal_api.h" |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 #if defined(OS_CHROMEOS) | 52 #if defined(OS_CHROMEOS) |
| 53 // Notification of a change in the state of an accessibility setting. | 53 // Notification of a change in the state of an accessibility setting. |
| 54 void OnAccessibilityStatusChanged( | 54 void OnAccessibilityStatusChanged( |
| 55 const chromeos::AccessibilityStatusEventDetails& details); | 55 const chromeos::AccessibilityStatusEventDetails& details); |
| 56 #endif | 56 #endif |
| 57 | 57 |
| 58 // A counter to generate a unique request id for a context menu request. | 58 // A counter to generate a unique request id for a context menu request. |
| 59 // We only need the ids to be unique for a given WebViewGuest. | 59 // We only need the ids to be unique for a given WebViewGuest. |
| 60 int pending_context_menu_request_id_; | 60 int pending_context_menu_request_id_; |
| 61 | 61 |
| 62 // Set to |true| if ChromeVox was already injected in main frame. | |
| 63 bool chromevox_injected_; | |
| 64 | |
| 65 // Holds the RenderViewContextMenuBase that has been built but yet to be | 62 // Holds the RenderViewContextMenuBase that has been built but yet to be |
| 66 // shown. This is .reset() after ShowContextMenu(). | 63 // shown. This is .reset() after ShowContextMenu(). |
| 67 std::unique_ptr<RenderViewContextMenuBase> pending_menu_; | 64 std::unique_ptr<RenderViewContextMenuBase> pending_menu_; |
| 68 | 65 |
| 69 #if defined(OS_CHROMEOS) | 66 #if defined(OS_CHROMEOS) |
| 67 // Set to |true| if ChromeVox was already injected in main frame. |
| 68 bool chromevox_injected_ = false; |
| 69 |
| 70 // Subscription to receive notifications on changes to a11y settings. | 70 // Subscription to receive notifications on changes to a11y settings. |
| 71 std::unique_ptr<chromeos::AccessibilityStatusSubscription> | 71 std::unique_ptr<chromeos::AccessibilityStatusSubscription> |
| 72 accessibility_subscription_; | 72 accessibility_subscription_; |
| 73 #endif | 73 #endif |
| 74 | 74 |
| 75 WebViewGuest* const web_view_guest_; | 75 WebViewGuest* const web_view_guest_; |
| 76 | 76 |
| 77 std::unique_ptr<gfx::Point> context_menu_position_; | 77 std::unique_ptr<gfx::Point> context_menu_position_; |
| 78 | 78 |
| 79 // This is used to ensure pending tasks will not fire after this object is | 79 // This is used to ensure pending tasks will not fire after this object is |
| 80 // destroyed. | 80 // destroyed. |
| 81 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_; | 81 base::WeakPtrFactory<ChromeWebViewGuestDelegate> weak_ptr_factory_; |
| 82 | 82 |
| 83 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); | 83 DISALLOW_COPY_AND_ASSIGN(ChromeWebViewGuestDelegate); |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 } // namespace extensions | 86 } // namespace extensions |
| 87 | 87 |
| 88 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ | 88 #endif // CHROME_BROWSER_GUEST_VIEW_WEB_VIEW_CHROME_WEB_VIEW_GUEST_DELEGATE_H_ |
| OLD | NEW |