Chromium Code Reviews| 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 // Sets a flag that indicates if it is in virtual reality mode. | 67 // Sets a flag that indicates if it is in virtual reality mode. |
| 68 virtual void SetIsInVR(bool is_in_vr) = 0; | 68 virtual void SetIsInVR(bool is_in_vr) = 0; |
| 69 | 69 |
| 70 // Returns true if the current view is in virtual reality mode. | |
| 71 virtual bool IsInVR() const = 0; | |
|
Charlie Reis
2017/01/18 22:34:41
We can't add this to the public API unless there a
| |
| 72 | |
| 70 // Coordinate points received from a renderer process need to be transformed | 73 // Coordinate points received from a renderer process need to be transformed |
| 71 // to the top-level frame's coordinate space. For coordinates received from | 74 // 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 | 75 // 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 | 76 // properly transformed; however, coordinates received from an out-of-process |
| 74 // iframe renderer process require transformation. | 77 // iframe renderer process require transformation. |
| 75 virtual gfx::Point TransformPointToRootCoordSpace( | 78 virtual gfx::Point TransformPointToRootCoordSpace( |
| 76 const gfx::Point& point) = 0; | 79 const gfx::Point& point) = 0; |
| 77 | 80 |
| 78 // A floating point variant of the above. PointF values will be snapped to | 81 // A floating point variant of the above. PointF values will be snapped to |
| 79 // integral points before transformation. | 82 // integral points before transformation. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 192 // Returns |true| if text is currently being spoken by Mac OS X. | 195 // Returns |true| if text is currently being spoken by Mac OS X. |
| 193 virtual bool IsSpeaking() const = 0; | 196 virtual bool IsSpeaking() const = 0; |
| 194 // Stops speaking, if it is currently in progress. | 197 // Stops speaking, if it is currently in progress. |
| 195 virtual void StopSpeaking() = 0; | 198 virtual void StopSpeaking() = 0; |
| 196 #endif // defined(OS_MACOSX) | 199 #endif // defined(OS_MACOSX) |
| 197 }; | 200 }; |
| 198 | 201 |
| 199 } // namespace content | 202 } // namespace content |
| 200 | 203 |
| 201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 204 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |