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

Side by Side Diff: chrome/browser/extensions/api/tab_capture/offscreen_tab.h

Issue 2521793003: Fix WebContentsDelegate::ShouldCreateWebContents implementations. (Closed)
Patch Set: Rename in MaybeCreateBackgroundContents Created 4 years 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 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 bool HandleContextMenu(const content::ContextMenuParams& params) final; 133 bool HandleContextMenu(const content::ContextMenuParams& params) final;
134 bool PreHandleKeyboardEvent(content::WebContents* source, 134 bool PreHandleKeyboardEvent(content::WebContents* source,
135 const content::NativeWebKeyboardEvent& event, 135 const content::NativeWebKeyboardEvent& event,
136 bool* is_keyboard_shortcut) final; 136 bool* is_keyboard_shortcut) 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* contents, 143 content::WebContents* web_contents,
144 content::SiteInstance* source_site_instance,
144 int32_t route_id, 145 int32_t route_id,
145 int32_t main_frame_route_id, 146 int32_t main_frame_route_id,
146 int32_t main_frame_widget_route_id, 147 int32_t main_frame_widget_route_id,
147 WindowContainerType window_container_type, 148 WindowContainerType window_container_type,
149 const GURL& opener_url,
148 const std::string& frame_name, 150 const std::string& frame_name,
149 const GURL& target_url, 151 const GURL& target_url,
150 const std::string& partition_id, 152 const std::string& partition_id,
151 content::SessionStorageNamespace* session_storage_namespace) final; 153 content::SessionStorageNamespace* session_storage_namespace) final;
152 bool EmbedsFullscreenWidget() const final; 154 bool EmbedsFullscreenWidget() const final;
153 void EnterFullscreenModeForTab(content::WebContents* contents, 155 void EnterFullscreenModeForTab(content::WebContents* contents,
154 const GURL& origin) final; 156 const GURL& origin) final;
155 void ExitFullscreenModeForTab(content::WebContents* contents) final; 157 void ExitFullscreenModeForTab(content::WebContents* contents) final;
156 bool IsFullscreenForTabOrPending( 158 bool IsFullscreenForTabOrPending(
157 const content::WebContents* contents) const final; 159 const content::WebContents* contents) const final;
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 // 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
210 // |offscreen_tab_web_contents_| is first detected. 212 // |offscreen_tab_web_contents_| is first detected.
211 bool content_capture_was_detected_; 213 bool content_capture_was_detected_;
212 214
213 DISALLOW_COPY_AND_ASSIGN(OffscreenTab); 215 DISALLOW_COPY_AND_ASSIGN(OffscreenTab);
214 }; 216 };
215 217
216 } // namespace extensions 218 } // namespace extensions
217 219
218 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ 220 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698