| 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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 // content::WebContentsDelegate overrides to provide the desired behaviors. | 125 // content::WebContentsDelegate overrides to provide the desired behaviors. |
| 126 void CloseContents(content::WebContents* source) final; | 126 void CloseContents(content::WebContents* source) final; |
| 127 bool ShouldSuppressDialogs(content::WebContents* source) final; | 127 bool ShouldSuppressDialogs(content::WebContents* source) final; |
| 128 bool ShouldFocusLocationBarByDefault(content::WebContents* source) final; | 128 bool ShouldFocusLocationBarByDefault(content::WebContents* source) final; |
| 129 bool ShouldFocusPageAfterCrash() final; | 129 bool ShouldFocusPageAfterCrash() final; |
| 130 void CanDownload(const GURL& url, | 130 void CanDownload(const GURL& url, |
| 131 const std::string& request_method, | 131 const std::string& request_method, |
| 132 const base::Callback<void(bool)>& callback) final; | 132 const base::Callback<void(bool)>& callback) final; |
| 133 bool HandleContextMenu(const content::ContextMenuParams& params) final; | 133 bool HandleContextMenu(const content::ContextMenuParams& params) final; |
| 134 bool PreHandleKeyboardEvent(content::WebContents* source, | 134 content::KeyboardEventProcessingResult PreHandleKeyboardEvent( |
| 135 const content::NativeWebKeyboardEvent& event, | 135 content::WebContents* source, |
| 136 bool* is_keyboard_shortcut) 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::SiteInstance* source_site_instance, | 144 content::SiteInstance* source_site_instance, |
| 145 int32_t route_id, | 145 int32_t route_id, |
| 146 int32_t main_frame_route_id, | 146 int32_t main_frame_route_id, |
| (...skipping 64 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 | 211 // This is false until after the Start() method is called, and capture of the |
| 212 // |offscreen_tab_web_contents_| is first detected. | 212 // |offscreen_tab_web_contents_| is first detected. |
| 213 bool content_capture_was_detected_; | 213 bool content_capture_was_detected_; |
| 214 | 214 |
| 215 DISALLOW_COPY_AND_ASSIGN(OffscreenTab); | 215 DISALLOW_COPY_AND_ASSIGN(OffscreenTab); |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 } // namespace extensions | 218 } // namespace extensions |
| 219 | 219 |
| 220 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ | 220 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ |
| OLD | NEW |