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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view.h

Issue 3055009: Use RenderWidget(Host) for full screen (Closed)
Patch Set: Add IPC::SyncMessage dependency. Fix auto complete. Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #if defined(OS_MACOSX) 9 #if defined(OS_MACOSX)
10 #include <OpenGL/OpenGL.h> 10 #include <OpenGL/OpenGL.h>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 // Retrieves the RenderWidgetHostView corresponding to the specified 62 // Retrieves the RenderWidgetHostView corresponding to the specified
63 // |native_view|, or NULL if there is no such instance. 63 // |native_view|, or NULL if there is no such instance.
64 static RenderWidgetHostView* GetRenderWidgetHostViewFromNativeView( 64 static RenderWidgetHostView* GetRenderWidgetHostViewFromNativeView(
65 gfx::NativeView native_view); 65 gfx::NativeView native_view);
66 66
67 // Perform all the initialization steps necessary for this object to represent 67 // Perform all the initialization steps necessary for this object to represent
68 // a popup (such as a <select> dropdown), then shows the popup at |pos|. 68 // a popup (such as a <select> dropdown), then shows the popup at |pos|.
69 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 69 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
70 const gfx::Rect& pos) = 0; 70 const gfx::Rect& pos) = 0;
71 71
72 // Perform all the initialization steps necessary for this object to represent
73 // a full screen window.
74 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view) = 0;
75
72 // Returns the associated RenderWidgetHost. 76 // Returns the associated RenderWidgetHost.
73 virtual RenderWidgetHost* GetRenderWidgetHost() const = 0; 77 virtual RenderWidgetHost* GetRenderWidgetHost() const = 0;
74 78
75 // Notifies the View that it has become visible. 79 // Notifies the View that it has become visible.
76 virtual void DidBecomeSelected() = 0; 80 virtual void DidBecomeSelected() = 0;
77 81
78 // Notifies the View that it has been hidden. 82 // Notifies the View that it has been hidden.
79 virtual void WasHidden() = 0; 83 virtual void WasHidden() = 0;
80 84
81 // Tells the View to size itself to the specified size. 85 // Tells the View to size itself to the specified size.
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 260
257 // A custom background to paint behind the web content. This will be tiled 261 // A custom background to paint behind the web content. This will be tiled
258 // horizontally. Can be null, in which case we fall back to painting white. 262 // horizontally. Can be null, in which case we fall back to painting white.
259 SkBitmap background_; 263 SkBitmap background_;
260 264
261 private: 265 private:
262 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); 266 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView);
263 }; 267 };
264 268
265 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ 269 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/render_widget_helper.cc ('k') | chrome/browser/renderer_host/render_widget_host_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698