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

Side by Side Diff: content/browser/renderer_host/render_view_host_delegate.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_DELEGATE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/process/kill.h" 12 #include "base/process/kill.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "content/browser/dom_storage/session_storage_namespace_impl.h" 14 #include "content/browser/dom_storage/session_storage_namespace_impl.h"
15 #include "content/common/content_export.h" 15 #include "content/common/content_export.h"
16 #include "net/base/load_states.h" 16 #include "net/base/load_states.h"
17 #include "third_party/WebKit/public/platform/WebDisplayMode.h"
17 #include "third_party/WebKit/public/web/WebPopupType.h" 18 #include "third_party/WebKit/public/web/WebPopupType.h"
18 #include "ui/base/window_open_disposition.h" 19 #include "ui/base/window_open_disposition.h"
19 20
20 class GURL; 21 class GURL;
21 class SkBitmap; 22 class SkBitmap;
22 struct ViewHostMsg_CreateWindow_Params; 23 struct ViewHostMsg_CreateWindow_Params;
23 struct FrameHostMsg_DidCommitProvisionalLoad_Params; 24 struct FrameHostMsg_DidCommitProvisionalLoad_Params;
24 struct ViewMsg_PostMessage_Params; 25 struct ViewMsg_PostMessage_Params;
25 26
26 namespace base { 27 namespace base {
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 virtual void HandleGestureEnd() {} 185 virtual void HandleGestureEnd() {}
185 186
186 // Called when a file selection is to be done. 187 // Called when a file selection is to be done.
187 virtual void RunFileChooser( 188 virtual void RunFileChooser(
188 RenderViewHost* render_view_host, 189 RenderViewHost* render_view_host,
189 const FileChooserParams& params) {} 190 const FileChooserParams& params) {}
190 191
191 // Returns whether the associated tab is in fullscreen mode. 192 // Returns whether the associated tab is in fullscreen mode.
192 virtual bool IsFullscreenForCurrentTab() const; 193 virtual bool IsFullscreenForCurrentTab() const;
193 194
195 // Returns the display mode for the view.
196 virtual blink::WebDisplayMode GetDisplayMode() const;
197
194 // The contents' preferred size changed. 198 // The contents' preferred size changed.
195 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} 199 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
196 200
197 // The contents auto-resized and the container should match it. 201 // The contents auto-resized and the container should match it.
198 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} 202 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {}
199 203
200 // Requests to lock the mouse. Once the request is approved or rejected, 204 // Requests to lock the mouse. Once the request is approved or rejected,
201 // GotResponseToLockMouseRequest() will be called on the requesting render 205 // GotResponseToLockMouseRequest() will be called on the requesting render
202 // view host. 206 // view host.
203 virtual void RequestToLockMouse(bool user_gesture, 207 virtual void RequestToLockMouse(bool user_gesture,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 virtual void SetIsVirtualKeyboardRequested(bool requested) {} 287 virtual void SetIsVirtualKeyboardRequested(bool requested) {}
284 virtual bool IsVirtualKeyboardRequested(); 288 virtual bool IsVirtualKeyboardRequested();
285 289
286 protected: 290 protected:
287 virtual ~RenderViewHostDelegate() {} 291 virtual ~RenderViewHostDelegate() {}
288 }; 292 };
289 293
290 } // namespace content 294 } // namespace content
291 295
292 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 296 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/renderer_host/render_view_host_delegate.cc » ('j') | content/renderer/render_widget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698