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 <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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. | 64 // Retrieves the last known scroll position. |
65 virtual gfx::Vector2dF GetLastScrollOffset() const = 0; | 65 virtual gfx::Vector2dF GetLastScrollOffset() const = 0; |
66 | 66 |
67 // Tells the renderer whether to show the overscroll glow. | 67 // Sets a flag that indicates if it is in virtual reality mode. |
68 virtual void SetShowingOverscrollGlow(bool showing) = 0; | 68 virtual void SetIsInVR(bool is_in_vr) = 0; |
69 | 69 |
70 // Coordinate points received from a renderer process need to be transformed | 70 // Coordinate points received from a renderer process need to be transformed |
71 // to the top-level frame's coordinate space. For coordinates received from | 71 // to the top-level frame's coordinate space. For coordinates received from |
72 // the top-level frame's renderer this is a no-op as they are already | 72 // the top-level frame's renderer this is a no-op as they are already |
73 // properly transformed; however, coordinates received from an out-of-process | 73 // properly transformed; however, coordinates received from an out-of-process |
74 // iframe renderer process require transformation. | 74 // iframe renderer process require transformation. |
75 virtual gfx::Point TransformPointToRootCoordSpace( | 75 virtual gfx::Point TransformPointToRootCoordSpace( |
76 const gfx::Point& point) = 0; | 76 const gfx::Point& point) = 0; |
77 | 77 |
78 // A floating point variant of the above. PointF values will be snapped to | 78 // A floating point variant of the above. PointF values will be snapped to |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 // Returns |true| if text is currently being spoken by Mac OS X. | 192 // Returns |true| if text is currently being spoken by Mac OS X. |
193 virtual bool IsSpeaking() const = 0; | 193 virtual bool IsSpeaking() const = 0; |
194 // Stops speaking, if it is currently in progress. | 194 // Stops speaking, if it is currently in progress. |
195 virtual void StopSpeaking() = 0; | 195 virtual void StopSpeaking() = 0; |
196 #endif // defined(OS_MACOSX) | 196 #endif // defined(OS_MACOSX) |
197 }; | 197 }; |
198 | 198 |
199 } // namespace content | 199 } // namespace content |
200 | 200 |
201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |