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 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. | |
| 68 virtual void SetShowingOverscrollGlow(bool showing) = 0; | |
|
sadrul
2016/12/06 20:29:23
Note that there's a WebContentsDelegate::CanOversc
asimjour1
2016/12/08 16:59:15
We can't disable the glow using WebContentsDelegat
| |
| 69 | |
| 67 // Coordinate points received from a renderer process need to be transformed | 70 // Coordinate points received from a renderer process need to be transformed |
| 68 // 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 |
| 69 // 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 |
| 70 // properly transformed; however, coordinates received from an out-of-process | 73 // properly transformed; however, coordinates received from an out-of-process |
| 71 // iframe renderer process require transformation. | 74 // iframe renderer process require transformation. |
| 72 virtual gfx::Point TransformPointToRootCoordSpace( | 75 virtual gfx::Point TransformPointToRootCoordSpace( |
| 73 const gfx::Point& point) = 0; | 76 const gfx::Point& point) = 0; |
| 74 | 77 |
| 75 // 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 |
| 76 // integral points before transformation. | 79 // integral points before transformation. |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 189 // 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. |
| 190 virtual bool IsSpeaking() const = 0; | 193 virtual bool IsSpeaking() const = 0; |
| 191 // Stops speaking, if it is currently in progress. | 194 // Stops speaking, if it is currently in progress. |
| 192 virtual void StopSpeaking() = 0; | 195 virtual void StopSpeaking() = 0; |
| 193 #endif // defined(OS_MACOSX) | 196 #endif // defined(OS_MACOSX) |
| 194 }; | 197 }; |
| 195 | 198 |
| 196 } // namespace content | 199 } // namespace content |
| 197 | 200 |
| 198 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |