| OLD | NEW |
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 static RenderWidgetHostView* GetRenderWidgetHostViewFromNativeView( | 75 static RenderWidgetHostView* GetRenderWidgetHostViewFromNativeView( |
| 76 gfx::NativeView native_view); | 76 gfx::NativeView native_view); |
| 77 | 77 |
| 78 // Perform all the initialization steps necessary for this object to represent | 78 // Perform all the initialization steps necessary for this object to represent |
| 79 // a popup (such as a <select> dropdown), then shows the popup at |pos|. | 79 // a popup (such as a <select> dropdown), then shows the popup at |pos|. |
| 80 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, | 80 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, |
| 81 const gfx::Rect& pos) = 0; | 81 const gfx::Rect& pos) = 0; |
| 82 | 82 |
| 83 // Perform all the initialization steps necessary for this object to represent | 83 // Perform all the initialization steps necessary for this object to represent |
| 84 // a full screen window. | 84 // a full screen window. |
| 85 virtual void InitAsFullscreen(RenderWidgetHostView* parent_host_view) = 0; | 85 virtual void InitAsFullscreen() = 0; |
| 86 | 86 |
| 87 // Returns the associated RenderWidgetHost. | 87 // Returns the associated RenderWidgetHost. |
| 88 virtual RenderWidgetHost* GetRenderWidgetHost() const = 0; | 88 virtual RenderWidgetHost* GetRenderWidgetHost() const = 0; |
| 89 | 89 |
| 90 // Notifies the View that it has become visible. | 90 // Notifies the View that it has become visible. |
| 91 virtual void DidBecomeSelected() = 0; | 91 virtual void DidBecomeSelected() = 0; |
| 92 | 92 |
| 93 // Notifies the View that it has been hidden. | 93 // Notifies the View that it has been hidden. |
| 94 virtual void WasHidden() = 0; | 94 virtual void WasHidden() = 0; |
| 95 | 95 |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 | 312 |
| 313 // The current reserved area in view coordinates where contents should not be | 313 // The current reserved area in view coordinates where contents should not be |
| 314 // rendered to draw the resize corner, sidebar mini tabs etc. | 314 // rendered to draw the resize corner, sidebar mini tabs etc. |
| 315 gfx::Rect reserved_rect_; | 315 gfx::Rect reserved_rect_; |
| 316 | 316 |
| 317 private: | 317 private: |
| 318 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 318 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); |
| 319 }; | 319 }; |
| 320 | 320 |
| 321 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 321 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |