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

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: Added implementation for content shell 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
174 virtual void LostCapture() {} 175 virtual void LostCapture() {}
175 176
176 // Called when a file selection is to be done. 177 // Called when a file selection is to be done.
177 virtual void RunFileChooser( 178 virtual void RunFileChooser(
178 RenderViewHost* render_view_host, 179 RenderViewHost* render_view_host,
179 const FileChooserParams& params) {} 180 const FileChooserParams& params) {}
180 181
181 // Returns whether the associated tab is in fullscreen mode. 182 // Returns whether the associated tab is in fullscreen mode.
182 virtual bool IsFullscreenForCurrentTab() const; 183 virtual bool IsFullscreenForCurrentTab() const;
183 184
185 // Returns the display mode for the view.
186 virtual blink::WebDisplayMode GetDisplayMode() const;
187
184 // The contents' preferred size changed. 188 // The contents' preferred size changed.
185 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {} 189 virtual void UpdatePreferredSize(const gfx::Size& pref_size) {}
186 190
187 // The contents auto-resized and the container should match it. 191 // The contents auto-resized and the container should match it.
188 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {} 192 virtual void ResizeDueToAutoResize(const gfx::Size& new_size) {}
189 193
190 // Requests to lock the mouse. Once the request is approved or rejected, 194 // Requests to lock the mouse. Once the request is approved or rejected,
191 // GotResponseToLockMouseRequest() will be called on the requesting render 195 // GotResponseToLockMouseRequest() will be called on the requesting render
192 // view host. 196 // view host.
193 virtual void RequestToLockMouse(bool user_gesture, 197 virtual void RequestToLockMouse(bool user_gesture,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 virtual void SetIsVirtualKeyboardRequested(bool requested) {} 277 virtual void SetIsVirtualKeyboardRequested(bool requested) {}
274 virtual bool IsVirtualKeyboardRequested(); 278 virtual bool IsVirtualKeyboardRequested();
275 279
276 protected: 280 protected:
277 virtual ~RenderViewHostDelegate() {} 281 virtual ~RenderViewHostDelegate() {}
278 }; 282 };
279 283
280 } // namespace content 284 } // namespace content
281 285
282 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ 286 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698