OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_WIDGET_HOST_VIEW_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CONTENT_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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 // Platform-specific creator. Use this to construct new RenderWidgetHostViews | 71 // Platform-specific creator. Use this to construct new RenderWidgetHostViews |
72 // rather than using RenderWidgetHostViewWin & friends. | 72 // rather than using RenderWidgetHostViewWin & friends. |
73 // | 73 // |
74 // This function must NOT size it, because the RenderView in the renderer | 74 // This function must NOT size it, because the RenderView in the renderer |
75 // wounldn't have been created yet. The widget would set its "waiting for | 75 // wounldn't have been created yet. The widget would set its "waiting for |
76 // resize ack" flag, and the ack would never come becasue no RenderView | 76 // resize ack" flag, and the ack would never come becasue no RenderView |
77 // received it. | 77 // received it. |
78 // | 78 // |
79 // The RenderWidgetHost must already be created (because we can't know if it's | 79 // The RenderWidgetHost must already be created (because we can't know if it's |
80 // going to be a regular RenderWidgetHost or a RenderViewHost (a subclass). | 80 // going to be a regular RenderWidgetHost or a RenderViewHost (a subclass). |
81 static RenderWidgetHostView* CreateViewForWidget(RenderWidgetHost* widget); | 81 CONTENT_EXPORT static RenderWidgetHostView* CreateViewForWidget( |
| 82 RenderWidgetHost* widget); |
82 | 83 |
83 // Perform all the initialization steps necessary for this object to represent | 84 // Perform all the initialization steps necessary for this object to represent |
84 // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 85 // a popup (such as a <select> dropdown), then shows the popup at |pos|. |
85 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 86 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
86 const gfx::Rect& pos) = 0; | 87 const gfx::Rect& pos) = 0; |
87 | 88 |
88 // Perform all the initialization steps necessary for this object to represent | 89 // Perform all the initialization steps necessary for this object to represent |
89 // a full screen window. | 90 // a full screen window. |
90 // |reference_host_view| is the view associated with the creating page that | 91 // |reference_host_view| is the view associated with the creating page that |
91 // helps to position the full screen widget on the correct monitor. | 92 // helps to position the full screen widget on the correct monitor. |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
362 // mouse position just as mouse lock was entered; the movement they report | 363 // mouse position just as mouse lock was entered; the movement they report |
363 // indicates what the change in position of the mouse would be had it not been | 364 // indicates what the change in position of the mouse would be had it not been |
364 // locked. | 365 // locked. |
365 bool mouse_locked_; | 366 bool mouse_locked_; |
366 | 367 |
367 private: | 368 private: |
368 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 369 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
369 }; | 370 }; |
370 | 371 |
371 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 372 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |