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

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

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased Created 5 years, 3 months 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_PRESENTATION_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_PRESENTATION_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_PRESENTATION_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_PRESENTATION_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 bool PreHandleKeyboardEvent(content::WebContents* source, 136 bool PreHandleKeyboardEvent(content::WebContents* source,
137 const content::NativeWebKeyboardEvent& event, 137 const content::NativeWebKeyboardEvent& event,
138 bool* is_keyboard_shortcut) final; 138 bool* is_keyboard_shortcut) final;
139 bool PreHandleGestureEvent(content::WebContents* source, 139 bool PreHandleGestureEvent(content::WebContents* source,
140 const blink::WebGestureEvent& event) final; 140 const blink::WebGestureEvent& event) final;
141 bool CanDragEnter(content::WebContents* source, 141 bool CanDragEnter(content::WebContents* source,
142 const content::DropData& data, 142 const content::DropData& data,
143 blink::WebDragOperationsMask operations_allowed) final; 143 blink::WebDragOperationsMask operations_allowed) final;
144 bool ShouldCreateWebContents( 144 bool ShouldCreateWebContents(
145 content::WebContents* contents, 145 content::WebContents* contents,
146 int route_id, 146 int32 route_id,
147 int main_frame_route_id, 147 int32 main_frame_route_id,
148 int32 main_frame_widget_route_id,
148 WindowContainerType window_container_type, 149 WindowContainerType window_container_type,
149 const std::string& frame_name, 150 const std::string& frame_name,
150 const GURL& target_url, 151 const GURL& target_url,
151 const std::string& partition_id, 152 const std::string& partition_id,
152 content::SessionStorageNamespace* session_storage_namespace) final; 153 content::SessionStorageNamespace* session_storage_namespace) final;
153 bool EmbedsFullscreenWidget() const final; 154 bool EmbedsFullscreenWidget() const final;
154 void EnterFullscreenModeForTab(content::WebContents* contents, 155 void EnterFullscreenModeForTab(content::WebContents* contents,
155 const GURL& origin) final; 156 const GURL& origin) final;
156 void ExitFullscreenModeForTab(content::WebContents* contents) final; 157 void ExitFullscreenModeForTab(content::WebContents* contents) final;
157 bool IsFullscreenForTabOrPending( 158 bool IsFullscreenForTabOrPending(
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 // |presentation_web_contents_| is first detected. 213 // |presentation_web_contents_| is first detected.
213 bool content_capture_was_detected_; 214 bool content_capture_was_detected_;
214 215
215 DISALLOW_COPY_AND_ASSIGN(OffscreenPresentation); 216 DISALLOW_COPY_AND_ASSIGN(OffscreenPresentation);
216 }; 217 };
217 218
218 } // namespace extensions 219 } // namespace extensions
219 220
220 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_PRESENTATION_H_ 221 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_PRESENTATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698