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_RENDERER_RENDER_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 | 144 |
| 145 // Returns the bounds of |element| in Window coordinates. The bounds have been | 145 // Returns the bounds of |element| in Window coordinates. The bounds have been |
| 146 // adjusted to include any transformations, including page scale. | 146 // adjusted to include any transformations, including page scale. |
| 147 // This function will update the layout if required. | 147 // This function will update the layout if required. |
| 148 virtual gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) | 148 virtual gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) |
| 149 = 0; | 149 = 0; |
| 150 | 150 |
| 151 // Returns the device scale factor for unit tests. | 151 // Returns the device scale factor for unit tests. |
| 152 virtual float GetDeviceScaleFactorForTest() const = 0; | 152 virtual float GetDeviceScaleFactorForTest() const = 0; |
| 153 | 153 |
| 154 // Whether we have added input handler or not. | |
|
no sievers
2016/06/01 22:14:47
nit: the comment does not add any information that
Changwan Ryu
2016/06/03 06:48:29
Removed.
| |
| 155 virtual bool HasAddedInputHandler() const = 0; | |
| 156 | |
| 154 protected: | 157 protected: |
| 155 ~RenderView() override {} | 158 ~RenderView() override {} |
| 156 | 159 |
| 157 private: | 160 private: |
| 158 // This interface should only be implemented inside content. | 161 // This interface should only be implemented inside content. |
| 159 friend class RenderViewImpl; | 162 friend class RenderViewImpl; |
| 160 RenderView() {} | 163 RenderView() {} |
| 161 }; | 164 }; |
| 162 | 165 |
| 163 } // namespace content | 166 } // namespace content |
| 164 | 167 |
| 165 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ | 168 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |