| 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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 void UpdateTopControlsState(TopControlsState constraints, | 441 void UpdateTopControlsState(TopControlsState constraints, |
| 442 TopControlsState current, | 442 TopControlsState current, |
| 443 bool animate) override; | 443 bool animate) override; |
| 444 #endif | 444 #endif |
| 445 void ConvertViewportToWindowViaWidget(blink::WebRect* rect) override; | 445 void ConvertViewportToWindowViaWidget(blink::WebRect* rect) override; |
| 446 gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) override; | 446 gfx::RectF ElementBoundsInWindow(const blink::WebElement& element) override; |
| 447 float GetDeviceScaleFactorForTest() const override; | 447 float GetDeviceScaleFactorForTest() const override; |
| 448 | 448 |
| 449 gfx::Point ConvertWindowPointToViewport(const gfx::Point& point); | 449 gfx::Point ConvertWindowPointToViewport(const gfx::Point& point); |
| 450 | 450 |
| 451 void set_uses_temporary_zoom_level(bool is_temporary) { |
| 452 uses_temporary_zoom_level_ = is_temporary; |
| 453 } |
| 451 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } | 454 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } |
| 452 | 455 |
| 453 // Please do not add your stuff randomly to the end here. If there is an | 456 // Please do not add your stuff randomly to the end here. If there is an |
| 454 // appropriate section, add it there. If not, there are some random functions | 457 // appropriate section, add it there. If not, there are some random functions |
| 455 // nearer to the top you can add it to. | 458 // nearer to the top you can add it to. |
| 456 | 459 |
| 457 protected: | 460 protected: |
| 458 // RenderWidget overrides: | 461 // RenderWidget overrides: |
| 459 void CloseForFrame() override; | 462 void CloseForFrame() override; |
| 460 void Close() override; | 463 void Close() override; |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 660 void OnResetPageEncodingToDefault(); | 663 void OnResetPageEncodingToDefault(); |
| 661 void OnSetActive(bool active); | 664 void OnSetActive(bool active); |
| 662 void OnSetBackgroundOpaque(bool opaque); | 665 void OnSetBackgroundOpaque(bool opaque); |
| 663 void OnExitFullscreen(); | 666 void OnExitFullscreen(); |
| 664 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); | 667 void OnSetHistoryOffsetAndLength(int history_offset, int history_length); |
| 665 void OnSetInitialFocus(bool reverse); | 668 void OnSetInitialFocus(bool reverse); |
| 666 void OnSetPageEncoding(const std::string& encoding_name); | 669 void OnSetPageEncoding(const std::string& encoding_name); |
| 667 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 670 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
| 668 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 671 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
| 669 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 672 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
| 670 void OnSetZoomLevelForView(bool uses_temporary_zoom_level, double level); | |
| 671 void OnSuppressDialogsUntilSwapOut(); | 673 void OnSuppressDialogsUntilSwapOut(); |
| 672 void OnThemeChanged(); | 674 void OnThemeChanged(); |
| 673 void OnUpdateTargetURLAck(); | 675 void OnUpdateTargetURLAck(); |
| 674 void OnUpdateWebPreferences(const WebPreferences& prefs); | 676 void OnUpdateWebPreferences(const WebPreferences& prefs); |
| 675 void OnSetPageScale(float page_scale_factor); | 677 void OnSetPageScale(float page_scale_factor); |
| 676 void OnZoom(PageZoom zoom); | 678 void OnZoom(PageZoom zoom); |
| 677 void OnForceRedraw(int request_id); | 679 void OnForceRedraw(int request_id); |
| 678 void OnSelectWordAroundCaret(); | 680 void OnSelectWordAroundCaret(); |
| 679 #if defined(OS_ANDROID) | 681 #if defined(OS_ANDROID) |
| 680 void OnUndoScrollFocusedEditableNodeIntoRect(); | 682 void OnUndoScrollFocusedEditableNodeIntoRect(); |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1007 // use the Observer interface to filter IPC messages and receive frame change | 1009 // use the Observer interface to filter IPC messages and receive frame change |
| 1008 // notifications. | 1010 // notifications. |
| 1009 // --------------------------------------------------------------------------- | 1011 // --------------------------------------------------------------------------- |
| 1010 | 1012 |
| 1011 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1013 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1012 }; | 1014 }; |
| 1013 | 1015 |
| 1014 } // namespace content | 1016 } // namespace content |
| 1015 | 1017 |
| 1016 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1018 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |