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 <deque> | 8 #include <deque> |
9 #include <map> | 9 #include <map> |
10 #include <set> | 10 #include <set> |
(...skipping 493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
504 virtual void SetEditCommandForNextKeyEvent(const std::string& name, | 504 virtual void SetEditCommandForNextKeyEvent(const std::string& name, |
505 const std::string& value) OVERRIDE; | 505 const std::string& value) OVERRIDE; |
506 virtual void ClearEditCommands() OVERRIDE; | 506 virtual void ClearEditCommands() OVERRIDE; |
507 virtual SSLStatus GetSSLStatusOfFrame(blink::WebFrame* frame) const OVERRIDE; | 507 virtual SSLStatus GetSSLStatusOfFrame(blink::WebFrame* frame) const OVERRIDE; |
508 virtual const std::string& GetAcceptLanguages() const OVERRIDE; | 508 virtual const std::string& GetAcceptLanguages() const OVERRIDE; |
509 #if defined(OS_ANDROID) | 509 #if defined(OS_ANDROID) |
510 virtual void UpdateTopControlsState(TopControlsState constraints, | 510 virtual void UpdateTopControlsState(TopControlsState constraints, |
511 TopControlsState current, | 511 TopControlsState current, |
512 bool animate) OVERRIDE; | 512 bool animate) OVERRIDE; |
513 #endif | 513 #endif |
514 virtual bool UsesTemporaryZoomLevel() const OVERRIDE; | |
Fady Samuel
2014/06/10 20:05:14
Duplicate comment: This doesn't need to be virtual
wjmaclean
2014/06/10 20:18:55
If it's not part of the content API, then I need t
| |
515 | |
516 void set_uses_temporary_zoom_level(bool); | |
514 | 517 |
515 // Please do not add your stuff randomly to the end here. If there is an | 518 // Please do not add your stuff randomly to the end here. If there is an |
516 // appropriate section, add it there. If not, there are some random functions | 519 // appropriate section, add it there. If not, there are some random functions |
517 // nearer to the top you can add it to. | 520 // nearer to the top you can add it to. |
518 | 521 |
519 // Cannot use std::set unfortunately since linked_ptr<> does not support | 522 // Cannot use std::set unfortunately since linked_ptr<> does not support |
520 // operator<. | 523 // operator<. |
521 typedef std::vector<linked_ptr<ImageResourceFetcher> > | 524 typedef std::vector<linked_ptr<ImageResourceFetcher> > |
522 ImageResourceFetcherList; | 525 ImageResourceFetcherList; |
523 | 526 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
737 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 740 void OnSetAccessibilityMode(AccessibilityMode new_mode); |
738 void OnSetActive(bool active); | 741 void OnSetActive(bool active); |
739 void OnSetBackgroundOpaque(bool opaque); | 742 void OnSetBackgroundOpaque(bool opaque); |
740 void OnExitFullscreen(); | 743 void OnExitFullscreen(); |
741 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 744 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
742 void OnSetInitialFocus(bool reverse); | 745 void OnSetInitialFocus(bool reverse); |
743 void OnSetPageEncoding(const std::string& encoding_name); | 746 void OnSetPageEncoding(const std::string& encoding_name); |
744 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 747 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
745 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 748 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
746 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 749 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
750 void OnSetZoomLevelForView(double level); | |
751 void OnSetUsesTemporaryZoomLevel(bool uses_temporary_zoom_level); | |
747 void OnStop(); | 752 void OnStop(); |
748 void OnStopFinding(StopFindAction action); | 753 void OnStopFinding(StopFindAction action); |
749 void OnSuppressDialogsUntilSwapOut(); | 754 void OnSuppressDialogsUntilSwapOut(); |
750 void OnThemeChanged(); | 755 void OnThemeChanged(); |
751 void OnUpdateTargetURLAck(); | 756 void OnUpdateTargetURLAck(); |
752 void OnUpdateWebPreferences(const WebPreferences& prefs); | 757 void OnUpdateWebPreferences(const WebPreferences& prefs); |
753 void OnZoom(PageZoom zoom); | 758 void OnZoom(PageZoom zoom); |
754 void OnEnableViewSourceMode(); | 759 void OnEnableViewSourceMode(); |
755 void OnDisownOpener(); | 760 void OnDisownOpener(); |
756 void OnWindowSnapshotCompleted(const int snapshot_id, | 761 void OnWindowSnapshotCompleted(const int snapshot_id, |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1012 | 1017 |
1013 // The URL the user's mouse is hovering over. | 1018 // The URL the user's mouse is hovering over. |
1014 GURL mouse_over_url_; | 1019 GURL mouse_over_url_; |
1015 | 1020 |
1016 // The URL that has keyboard focus. | 1021 // The URL that has keyboard focus. |
1017 GURL focus_url_; | 1022 GURL focus_url_; |
1018 | 1023 |
1019 // The next target URL we want to send to the browser. | 1024 // The next target URL we want to send to the browser. |
1020 GURL pending_target_url_; | 1025 GURL pending_target_url_; |
1021 | 1026 |
1027 // Indicates whether this view overrides url-based zoom settings. | |
1028 bool uses_temporary_zoom_level_; | |
1029 | |
1022 #if defined(OS_ANDROID) | 1030 #if defined(OS_ANDROID) |
1023 // Cache the old top controls state constraints. Used when updating | 1031 // Cache the old top controls state constraints. Used when updating |
1024 // current value only without altering the constraints. | 1032 // current value only without altering the constraints. |
1025 cc::TopControlsState top_controls_constraints_; | 1033 cc::TopControlsState top_controls_constraints_; |
1026 #endif | 1034 #endif |
1027 | 1035 |
1028 // View ---------------------------------------------------------------------- | 1036 // View ---------------------------------------------------------------------- |
1029 | 1037 |
1030 // Cache the preferred size of the page in order to prevent sending the IPC | 1038 // Cache the preferred size of the page in order to prevent sending the IPC |
1031 // when layout() recomputes but doesn't actually change sizes. | 1039 // when layout() recomputes but doesn't actually change sizes. |
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1190 // use the Observer interface to filter IPC messages and receive frame change | 1198 // use the Observer interface to filter IPC messages and receive frame change |
1191 // notifications. | 1199 // notifications. |
1192 // --------------------------------------------------------------------------- | 1200 // --------------------------------------------------------------------------- |
1193 | 1201 |
1194 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1202 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1195 }; | 1203 }; |
1196 | 1204 |
1197 } // namespace content | 1205 } // namespace content |
1198 | 1206 |
1199 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1207 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |