| 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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // Returns the associated RenderWidgetHost. | 54 // Returns the associated RenderWidgetHost. |
| 55 virtual RenderWidgetHost* GetRenderWidgetHost() const = 0; | 55 virtual RenderWidgetHost* GetRenderWidgetHost() const = 0; |
| 56 | 56 |
| 57 // Tells the View to size itself to the specified size. | 57 // Tells the View to size itself to the specified size. |
| 58 virtual void SetSize(const gfx::Size& size) = 0; | 58 virtual void SetSize(const gfx::Size& size) = 0; |
| 59 | 59 |
| 60 // Tells the View to size and move itself to the specified size and point in | 60 // Tells the View to size and move itself to the specified size and point in |
| 61 // screen space. | 61 // screen space. |
| 62 virtual void SetBounds(const gfx::Rect& rect) = 0; | 62 virtual void SetBounds(const gfx::Rect& rect) = 0; |
| 63 | 63 |
| 64 // Retrieves the last known scroll position. |
| 65 virtual gfx::Vector2dF GetLastScrollOffset() const = 0; |
| 66 |
| 64 // Retrieves the native view used to contain plugins and identify the | 67 // Retrieves the native view used to contain plugins and identify the |
| 65 // renderer in IPC messages. | 68 // renderer in IPC messages. |
| 66 virtual gfx::NativeView GetNativeView() const = 0; | 69 virtual gfx::NativeView GetNativeView() const = 0; |
| 67 virtual gfx::NativeViewId GetNativeViewId() const = 0; | 70 virtual gfx::NativeViewId GetNativeViewId() const = 0; |
| 68 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; | 71 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; |
| 69 | 72 |
| 70 // Returns a ui::TextInputClient to support text input or NULL if this RWHV | 73 // Returns a ui::TextInputClient to support text input or NULL if this RWHV |
| 71 // doesn't support text input. | 74 // doesn't support text input. |
| 72 // Note: Not all the platforms use ui::InputMethod and ui::TextInputClient for | 75 // Note: Not all the platforms use ui::InputMethod and ui::TextInputClient for |
| 73 // text input. Some platforms (Mac and Android for example) use their own | 76 // text input. Some platforms (Mac and Android for example) use their own |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 // Returns |true| if text is currently being spoken by Mac OS X. | 165 // Returns |true| if text is currently being spoken by Mac OS X. |
| 163 virtual bool IsSpeaking() const = 0; | 166 virtual bool IsSpeaking() const = 0; |
| 164 // Stops speaking, if it is currently in progress. | 167 // Stops speaking, if it is currently in progress. |
| 165 virtual void StopSpeaking() = 0; | 168 virtual void StopSpeaking() = 0; |
| 166 #endif // defined(OS_MACOSX) | 169 #endif // defined(OS_MACOSX) |
| 167 }; | 170 }; |
| 168 | 171 |
| 169 } // namespace content | 172 } // namespace content |
| 170 | 173 |
| 171 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 174 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |