| 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 21 matching lines...) Expand all  Loading... | 
| 32 | 32 | 
| 33 class BackingStore; | 33 class BackingStore; | 
| 34 class RenderProcessHost; | 34 class RenderProcessHost; | 
| 35 class RenderWidgetHost; | 35 class RenderWidgetHost; | 
| 36 class WebCursor; | 36 class WebCursor; | 
| 37 struct NativeWebKeyboardEvent; | 37 struct NativeWebKeyboardEvent; | 
| 38 struct ViewHostMsg_AccessibilityNotification_Params; | 38 struct ViewHostMsg_AccessibilityNotification_Params; | 
| 39 | 39 | 
| 40 namespace webkit_glue { | 40 namespace webkit_glue { | 
| 41 struct WebAccessibility; | 41 struct WebAccessibility; | 
| 42 } |  | 
| 43 |  | 
| 44 namespace webkit { |  | 
| 45 namespace npapi { |  | 
| 46 struct WebPluginGeometry; | 42 struct WebPluginGeometry; | 
| 47 } | 43 } | 
| 48 } |  | 
| 49 | 44 | 
| 50 // RenderWidgetHostView is an interface implemented by an object that acts as | 45 // RenderWidgetHostView is an interface implemented by an object that acts as | 
| 51 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its | 46 // the "View" portion of a RenderWidgetHost. The RenderWidgetHost and its | 
| 52 // associated RenderProcessHost own the "Model" in this case which is the | 47 // associated RenderProcessHost own the "Model" in this case which is the | 
| 53 // child renderer process. The View is responsible for receiving events from | 48 // child renderer process. The View is responsible for receiving events from | 
| 54 // the surrounding environment and passing them to the RenderWidgetHost, and | 49 // the surrounding environment and passing them to the RenderWidgetHost, and | 
| 55 // for actually displaying the content of the RenderWidgetHost when it | 50 // for actually displaying the content of the RenderWidgetHost when it | 
| 56 // changes. | 51 // changes. | 
| 57 class RenderWidgetHostView { | 52 class RenderWidgetHostView { | 
| 58  public: | 53  public: | 
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 95 | 90 | 
| 96   // Tells the View to size itself to the specified size. | 91   // Tells the View to size itself to the specified size. | 
| 97   virtual void SetSize(const gfx::Size& size) = 0; | 92   virtual void SetSize(const gfx::Size& size) = 0; | 
| 98 | 93 | 
| 99   // Retrieves the native view used to contain plugins and identify the | 94   // Retrieves the native view used to contain plugins and identify the | 
| 100   // renderer in IPC messages. | 95   // renderer in IPC messages. | 
| 101   virtual gfx::NativeView GetNativeView() = 0; | 96   virtual gfx::NativeView GetNativeView() = 0; | 
| 102 | 97 | 
| 103   // Moves all plugin windows as described in the given list. | 98   // Moves all plugin windows as described in the given list. | 
| 104   virtual void MovePluginWindows( | 99   virtual void MovePluginWindows( | 
| 105       const std::vector<webkit::npapi::WebPluginGeometry>& moves) = 0; | 100       const std::vector<webkit_glue::WebPluginGeometry>& moves) = 0; | 
| 106 | 101 | 
| 107   // Actually set/take focus to/from the associated View component. | 102   // Actually set/take focus to/from the associated View component. | 
| 108   virtual void Focus() = 0; | 103   virtual void Focus() = 0; | 
| 109   virtual void Blur() = 0; | 104   virtual void Blur() = 0; | 
| 110 | 105 | 
| 111   // Returns true if the View currently has the focus. | 106   // Returns true if the View currently has the focus. | 
| 112   virtual bool HasFocus() = 0; | 107   virtual bool HasFocus() = 0; | 
| 113 | 108 | 
| 114   // Shows/hides the view.  These must always be called together in pairs. | 109   // Shows/hides the view.  These must always be called together in pairs. | 
| 115   // It is not legal to call Hide() multiple times in a row. | 110   // It is not legal to call Hide() multiple times in a row. | 
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 309 | 304 | 
| 310   // The current reserved area in view coordinates where contents should not be | 305   // The current reserved area in view coordinates where contents should not be | 
| 311   // rendered to draw the resize corner, sidebar mini tabs etc. | 306   // rendered to draw the resize corner, sidebar mini tabs etc. | 
| 312   gfx::Rect reserved_rect_; | 307   gfx::Rect reserved_rect_; | 
| 313 | 308 | 
| 314  private: | 309  private: | 
| 315   DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 310   DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostView); | 
| 316 }; | 311 }; | 
| 317 | 312 | 
| 318 #endif  // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 313 #endif  // CHROME_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_H_ | 
| OLD | NEW | 
|---|