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

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: Allowed include of "third_party/WebKit/public/platform/WebDisplayMode.h" 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 25
25 namespace base { 26 namespace base {
26 class ListValue; 27 class ListValue;
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 virtual void LostCapture() {} 169 virtual void LostCapture() {}
169 170
170 // Called when a file selection is to be done. 171 // Called when a file selection is to be done.
171 virtual void RunFileChooser( 172 virtual void RunFileChooser(
172 RenderViewHost* render_view_host, 173 RenderViewHost* render_view_host,
173 const FileChooserParams& params) {} 174 const FileChooserParams& params) {}
174 175
175 // Returns whether the associated tab is in fullscreen mode. 176 // Returns whether the associated tab is in fullscreen mode.
176 virtual bool IsFullscreenForCurrentTab() const; 177 virtual bool IsFullscreenForCurrentTab() const;
177 178
179 // Returns the display mode for the view.
180 virtual blink::WebDisplayMode GetDisplayMode() const;
181
178 // The contents' preferred size changed. 182 // The contents' preferred size changed.
179 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} 183 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
180 184
181 // The contents auto-resized and the container should match it. 185 // The contents auto-resized and the container should match it.
182 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} 186 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {}
183 187
184 // Requests to lock the mouse. Once the request is approved or rejected, 188 // Requests to lock the mouse. Once the request is approved or rejected,
185 // GotResponseToLockMouseRequest() will be called on the requesting render 189 // GotResponseToLockMouseRequest() will be called on the requesting render
186 // view host. 190 // view host.
187 virtual void RequestToLockMouse(bool user_gesture, 191 virtual void RequestToLockMouse(bool user_gesture,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 virtual void SetIsVirtualKeyboardRequested(bool requested) {} 271 virtual void SetIsVirtualKeyboardRequested(bool requested) {}
268 virtual bool IsVirtualKeyboardRequested(); 272 virtual bool IsVirtualKeyboardRequested();
269 273
270 protected: 274 protected:
271 virtual ~RenderViewHostDelegate() {} 275 virtual ~RenderViewHostDelegate() {}
272 }; 276 };
273 277
274 } // namespace content 278 } // namespace content
275 279
276 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 280 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698