| 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_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 const std::string& GetAcceptLanguages() const override; | 450 const std::string& GetAcceptLanguages() const override; |
| 451 #if defined(OS_ANDROID) | 451 #if defined(OS_ANDROID) |
| 452 void UpdateTopControlsState(TopControlsState constraints, | 452 void UpdateTopControlsState(TopControlsState constraints, |
| 453 TopControlsState current, | 453 TopControlsState current, |
| 454 bool animate) override; | 454 bool animate) override; |
| 455 #endif | 455 #endif |
| 456 void convertViewportToWindow(blink::WebRect* rect) override; | 456 void convertViewportToWindow(blink::WebRect* rect) override; |
| 457 gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) override; | 457 gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) override; |
| 458 float GetDeviceScaleFactorForTest() const override; | 458 float GetDeviceScaleFactorForTest() const override; |
| 459 | 459 |
| 460 gfx::Point ConvertWindowPointToViewport(const gfx::Point& point); |
| 461 |
| 460 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } | 462 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } |
| 461 | 463 |
| 462 // Please do not add your stuff randomly to the end here. If there is an | 464 // Please do not add your stuff randomly to the end here. If there is an |
| 463 // appropriate section, add it there. If not, there are some random functions | 465 // appropriate section, add it there. If not, there are some random functions |
| 464 // nearer to the top you can add it to. | 466 // nearer to the top you can add it to. |
| 465 | 467 |
| 466 protected: | 468 protected: |
| 467 // RenderWidget overrides: | 469 // RenderWidget overrides: |
| 468 void CloseForFrame() override; | 470 void CloseForFrame() override; |
| 469 void Close() override; | 471 void Close() override; |
| (...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 // use the Observer interface to filter IPC messages and receive frame change | 1019 // use the Observer interface to filter IPC messages and receive frame change |
| 1018 // notifications. | 1020 // notifications. |
| 1019 // --------------------------------------------------------------------------- | 1021 // --------------------------------------------------------------------------- |
| 1020 | 1022 |
| 1021 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1023 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1022 }; | 1024 }; |
| 1023 | 1025 |
| 1024 } // namespace content | 1026 } // namespace content |
| 1025 | 1027 |
| 1026 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1028 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |