| OLD | NEW |
| 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_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 // within content/ and to embedders looking to port to new platforms. | 41 // within content/ and to embedders looking to port to new platforms. |
| 42 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView { | 42 class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView { |
| 43 public: | 43 public: |
| 44 virtual ~RenderWidgetHostViewPort() {} | 44 virtual ~RenderWidgetHostViewPort() {} |
| 45 | 45 |
| 46 // Does the cast for you. | 46 // Does the cast for you. |
| 47 static RenderWidgetHostViewPort* FromRWHV(RenderWidgetHostView* rwhv); | 47 static RenderWidgetHostViewPort* FromRWHV(RenderWidgetHostView* rwhv); |
| 48 | 48 |
| 49 // Like RenderWidgetHostView::CreateViewForWidget, with cast. | 49 // Like RenderWidgetHostView::CreateViewForWidget, with cast. |
| 50 static RenderWidgetHostViewPort* CreateViewForWidget( | 50 static RenderWidgetHostViewPort* CreateViewForWidget( |
| 51 RenderWidgetHost* widget); | 51 content::RenderWidgetHost* widget); |
| 52 | 52 |
| 53 // Perform all the initialization steps necessary for this object to represent | 53 // Perform all the initialization steps necessary for this object to represent |
| 54 // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 54 // a popup (such as a <select> dropdown), then shows the popup at |pos|. |
| 55 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 55 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 56 const gfx::Rect& pos) = 0; | 56 const gfx::Rect& pos) = 0; |
| 57 | 57 |
| 58 // Perform all the initialization steps necessary for this object to represent | 58 // Perform all the initialization steps necessary for this object to represent |
| 59 // a full screen window. | 59 // a full screen window. |
| 60 // |reference_host_view| is the view associated with the creating page that | 60 // |reference_host_view| is the view associated with the creating page that |
| 61 // helps to position the full screen widget on the correct monitor. | 61 // helps to position the full screen widget on the correct monitor. |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 virtual WebKit::WebPopupType GetPopupType() = 0; | 242 virtual WebKit::WebPopupType GetPopupType() = 0; |
| 243 | 243 |
| 244 virtual void OnAccessibilityNotifications( | 244 virtual void OnAccessibilityNotifications( |
| 245 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 245 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
| 246 } | 246 } |
| 247 }; | 247 }; |
| 248 | 248 |
| 249 } // namespace content | 249 } // namespace content |
| 250 | 250 |
| 251 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 251 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
| OLD | NEW |