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

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

Issue 964403003: Make it possible to set the display mode from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Decouple getting display mode and renderer-initiated fullscreen mode code paths Created 5 years, 8 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 (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 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 315
316 protected: 316 protected:
317 // RenderWidgetHost protected overrides. 317 // RenderWidgetHost protected overrides.
318 void OnUserGesture() override; 318 void OnUserGesture() override;
319 void NotifyRendererUnresponsive() override; 319 void NotifyRendererUnresponsive() override;
320 void NotifyRendererResponsive() override; 320 void NotifyRendererResponsive() override;
321 void OnRenderAutoResized(const gfx::Size& size) override; 321 void OnRenderAutoResized(const gfx::Size& size) override;
322 void RequestToLockMouse(bool user_gesture, 322 void RequestToLockMouse(bool user_gesture,
323 bool last_unlocked_by_target) override; 323 bool last_unlocked_by_target) override;
324 bool IsFullscreen() const override; 324 bool IsFullscreen() const override;
325 blink::WebDisplayMode GetDisplayMode() const override;
325 void OnFocus() override; 326 void OnFocus() override;
326 void OnBlur() override; 327 void OnBlur() override;
327 328
328 // IPC message handlers. 329 // IPC message handlers.
329 void OnShowView(int route_id, 330 void OnShowView(int route_id,
330 WindowOpenDisposition disposition, 331 WindowOpenDisposition disposition,
331 const gfx::Rect& initial_rect, 332 const gfx::Rect& initial_rect,
332 bool user_gesture); 333 bool user_gesture);
333 void OnShowWidget(int route_id, const gfx::Rect& initial_rect); 334 void OnShowWidget(int route_id, const gfx::Rect& initial_rect);
334 void OnShowFullscreenWidget(int route_id); 335 void OnShowFullscreenWidget(int route_id);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl); 457 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImpl);
457 }; 458 };
458 459
459 #if defined(COMPILER_MSVC) 460 #if defined(COMPILER_MSVC)
460 #pragma warning(pop) 461 #pragma warning(pop)
461 #endif 462 #endif
462 463
463 } // namespace content 464 } // namespace content
464 465
465 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_ 466 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698