| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ |
| 6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 content::KeyboardEventProcessingResult PreHandleKeyboardEvent( | 134 content::KeyboardEventProcessingResult PreHandleKeyboardEvent( |
| 135 content::WebContents* source, | 135 content::WebContents* source, |
| 136 const content::NativeWebKeyboardEvent& event) final; | 136 const content::NativeWebKeyboardEvent& event) final; |
| 137 bool PreHandleGestureEvent(content::WebContents* source, | 137 bool PreHandleGestureEvent(content::WebContents* source, |
| 138 const blink::WebGestureEvent& event) final; | 138 const blink::WebGestureEvent& event) final; |
| 139 bool CanDragEnter(content::WebContents* source, | 139 bool CanDragEnter(content::WebContents* source, |
| 140 const content::DropData& data, | 140 const content::DropData& data, |
| 141 blink::WebDragOperationsMask operations_allowed) final; | 141 blink::WebDragOperationsMask operations_allowed) final; |
| 142 bool ShouldCreateWebContents( | 142 bool ShouldCreateWebContents( |
| 143 content::WebContents* web_contents, | 143 content::WebContents* web_contents, |
| 144 content::RenderFrameHost* opener, |
| 144 content::SiteInstance* source_site_instance, | 145 content::SiteInstance* source_site_instance, |
| 145 int32_t route_id, | 146 int32_t route_id, |
| 146 int32_t main_frame_route_id, | 147 int32_t main_frame_route_id, |
| 147 int32_t main_frame_widget_route_id, | 148 int32_t main_frame_widget_route_id, |
| 148 content::mojom::WindowContainerType window_container_type, | 149 content::mojom::WindowContainerType window_container_type, |
| 149 const GURL& opener_url, | 150 const GURL& opener_url, |
| 150 const std::string& frame_name, | 151 const std::string& frame_name, |
| 151 const GURL& target_url, | 152 const GURL& target_url, |
| 152 const std::string& partition_id, | 153 const std::string& partition_id, |
| 153 content::SessionStorageNamespace* session_storage_namespace) final; | 154 content::SessionStorageNamespace* session_storage_namespace) final; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 // This is false until after the Start() method is called, and capture of the | 212 // This is false until after the Start() method is called, and capture of the |
| 212 // |offscreen_tab_web_contents_| is first detected. | 213 // |offscreen_tab_web_contents_| is first detected. |
| 213 bool content_capture_was_detected_; | 214 bool content_capture_was_detected_; |
| 214 | 215 |
| 215 DISALLOW_COPY_AND_ASSIGN(OffscreenTab); | 216 DISALLOW_COPY_AND_ASSIGN(OffscreenTab); |
| 216 }; | 217 }; |
| 217 | 218 |
| 218 } // namespace extensions | 219 } // namespace extensions |
| 219 | 220 |
| 220 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ | 221 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ |
| OLD | NEW |