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

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

Issue 1303773002: Give the main frame a RenderWidget. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix merge conflicts Created 5 years, 1 month 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 bool PreHandleKeyboardEvent(content::WebContents* source, 132 bool PreHandleKeyboardEvent(content::WebContents* source,
133 const content::NativeWebKeyboardEvent& event, 133 const content::NativeWebKeyboardEvent& event,
134 bool* is_keyboard_shortcut) final; 134 bool* is_keyboard_shortcut) final;
135 bool PreHandleGestureEvent(content::WebContents* source, 135 bool PreHandleGestureEvent(content::WebContents* source,
136 const blink::WebGestureEvent& event) final; 136 const blink::WebGestureEvent& event) final;
137 bool CanDragEnter(content::WebContents* source, 137 bool CanDragEnter(content::WebContents* source,
138 const content::DropData& data, 138 const content::DropData& data,
139 blink::WebDragOperationsMask operations_allowed) final; 139 blink::WebDragOperationsMask operations_allowed) final;
140 bool ShouldCreateWebContents( 140 bool ShouldCreateWebContents(
141 content::WebContents* contents, 141 content::WebContents* contents,
142 int route_id, 142 int32_t route_id,
143 int main_frame_route_id, 143 int32_t main_frame_route_id,
144 int32_t main_frame_widget_route_id,
144 WindowContainerType window_container_type, 145 WindowContainerType window_container_type,
145 const std::string& frame_name, 146 const std::string& frame_name,
146 const GURL& target_url, 147 const GURL& target_url,
147 const std::string& partition_id, 148 const std::string& partition_id,
148 content::SessionStorageNamespace* session_storage_namespace) final; 149 content::SessionStorageNamespace* session_storage_namespace) final;
149 bool EmbedsFullscreenWidget() const final; 150 bool EmbedsFullscreenWidget() const final;
150 void EnterFullscreenModeForTab(content::WebContents* contents, 151 void EnterFullscreenModeForTab(content::WebContents* contents,
151 const GURL& origin) final; 152 const GURL& origin) final;
152 void ExitFullscreenModeForTab(content::WebContents* contents) final; 153 void ExitFullscreenModeForTab(content::WebContents* contents) final;
153 bool IsFullscreenForTabOrPending( 154 bool IsFullscreenForTabOrPending(
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 // This is false until after the Start() method is called, and capture of the 207 // This is false until after the Start() method is called, and capture of the
207 // |offscreen_tab_web_contents_| is first detected. 208 // |offscreen_tab_web_contents_| is first detected.
208 bool content_capture_was_detected_; 209 bool content_capture_was_detected_;
209 210
210 DISALLOW_COPY_AND_ASSIGN(OffscreenTab); 211 DISALLOW_COPY_AND_ASSIGN(OffscreenTab);
211 }; 212 };
212 213
213 } // namespace extensions 214 } // namespace extensions
214 215
215 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_ 216 #endif // CHROME_BROWSER_EXTENSIONS_API_TAB_CAPTURE_OFFSCREEN_TAB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698