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

Side by Side Diff: content/browser/renderer_host/render_view_host_impl.h

Issue 789533002: Fullscreen: make fullscreen requests come from RenderFrame (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 const ViewHostMsg_CreateWindow_Params& params, 283 const ViewHostMsg_CreateWindow_Params& params,
284 SessionStorageNamespace* session_storage_namespace); 284 SessionStorageNamespace* session_storage_namespace);
285 285
286 // Creates a new RenderWidget with the given route id. |popup_type| indicates 286 // Creates a new RenderWidget with the given route id. |popup_type| indicates
287 // if this widget is a popup and what kind of popup it is (select, autofill). 287 // if this widget is a popup and what kind of popup it is (select, autofill).
288 void CreateNewWidget(int route_id, blink::WebPopupType popup_type); 288 void CreateNewWidget(int route_id, blink::WebPopupType popup_type);
289 289
290 // Creates a full screen RenderWidget. 290 // Creates a full screen RenderWidget.
291 void CreateNewFullscreenWidget(int route_id); 291 void CreateNewFullscreenWidget(int route_id);
292 292
293 // Called from a RenderFrameHostImpl when Blink requests to go fullscreen.
294 // The |origin| is the origin of the last committed url of the frame.
295 void EnterFullscreen(const GURL& origin);
mlamouri (slow - plz ping) 2014/12/08 20:21:57 It would probably have been a better idea to go tr
Charlie Reis 2014/12/10 00:51:21 Hmm, it does seem like that would be a better opti
mlamouri (slow - plz ping) 2014/12/10 15:47:02 Done. But I had to move some things around. Render
Charlie Reis 2014/12/10 19:22:56 I agree, this is much better. And it's not a big
296
293 #if defined(ENABLE_BROWSER_CDMS) 297 #if defined(ENABLE_BROWSER_CDMS)
294 MediaWebContentsObserver* media_web_contents_observer() { 298 MediaWebContentsObserver* media_web_contents_observer() {
295 return media_web_contents_observer_.get(); 299 return media_web_contents_observer_.get();
296 } 300 }
297 #endif 301 #endif
298 302
299 int main_frame_routing_id() const { 303 int main_frame_routing_id() const {
300 return main_frame_routing_id_; 304 return main_frame_routing_id_;
301 } 305 }
302 306
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 void OnShowWidget(int route_id, const gfx::Rect& initial_pos); 352 void OnShowWidget(int route_id, const gfx::Rect& initial_pos);
349 void OnShowFullscreenWidget(int route_id); 353 void OnShowFullscreenWidget(int route_id);
350 void OnRunModal(int opener_id, IPC::Message* reply_msg); 354 void OnRunModal(int opener_id, IPC::Message* reply_msg);
351 void OnRenderViewReady(); 355 void OnRenderViewReady();
352 void OnRenderProcessGone(int status, int error_code); 356 void OnRenderProcessGone(int status, int error_code);
353 void OnUpdateState(int32 page_id, const PageState& state); 357 void OnUpdateState(int32 page_id, const PageState& state);
354 void OnUpdateTargetURL(const GURL& url); 358 void OnUpdateTargetURL(const GURL& url);
355 void OnClose(); 359 void OnClose();
356 void OnRequestMove(const gfx::Rect& pos); 360 void OnRequestMove(const gfx::Rect& pos);
357 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level); 361 void OnDocumentAvailableInMainFrame(bool uses_temporary_zoom_level);
358 void OnToggleFullscreen(bool enter_fullscreen);
359 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size); 362 void OnDidContentsPreferredSizeChange(const gfx::Size& new_size);
360 void OnPasteFromSelectionClipboard(); 363 void OnPasteFromSelectionClipboard();
361 void OnRouteCloseEvent(); 364 void OnRouteCloseEvent();
362 void OnRouteMessageEvent(const ViewMsg_PostMessage_Params& params); 365 void OnRouteMessageEvent(const ViewMsg_PostMessage_Params& params);
363 void OnStartDragging(const DropData& drop_data, 366 void OnStartDragging(const DropData& drop_data,
364 blink::WebDragOperationsMask operations_allowed, 367 blink::WebDragOperationsMask operations_allowed,
365 const SkBitmap& bitmap, 368 const SkBitmap& bitmap,
366 const gfx::Vector2d& bitmap_offset_in_dip, 369 const gfx::Vector2d& bitmap_offset_in_dip,
367 const DragEventSourceInfo& event_info); 370 const DragEventSourceInfo& event_info);
368 void OnUpdateDragCursor(blink::WebDragOperation drag_operation); 371 void OnUpdateDragCursor(blink::WebDragOperation drag_operation);
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 479 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
477 }; 480 };
478 481
479 #if defined(COMPILER_MSVC) 482 #if defined(COMPILER_MSVC)
480 #pragma warning(pop) 483 #pragma warning(pop)
481 #endif 484 #endif
482 485
483 } // namespace content 486 } // namespace content
484 487
485 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 488 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698