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 bool uses_temporary_zoom_level() const { return uses_temporary_zoom_level_; } |
514 | 515 |
515 // Please do not add your stuff randomly to the end here. If there is an | 516 // 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 | 517 // appropriate section, add it there. If not, there are some random functions |
517 // nearer to the top you can add it to. | 518 // nearer to the top you can add it to. |
518 | 519 |
519 // Cannot use std::set unfortunately since linked_ptr<> does not support | 520 // Cannot use std::set unfortunately since linked_ptr<> does not support |
520 // operator<. | 521 // operator<. |
521 typedef std::vector<linked_ptr<ImageResourceFetcher> > | 522 typedef std::vector<linked_ptr<ImageResourceFetcher> > |
522 ImageResourceFetcherList; | 523 ImageResourceFetcherList; |
523 | 524 |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
736 void OnSetAccessibilityMode(AccessibilityMode new_mode); | 737 void OnSetAccessibilityMode(AccessibilityMode new_mode); |
737 void OnSetActive(bool active); | 738 void OnSetActive(bool active); |
738 void OnSetBackgroundOpaque(bool opaque); | 739 void OnSetBackgroundOpaque(bool opaque); |
739 void OnExitFullscreen(); | 740 void OnExitFullscreen(); |
740 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 741 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
741 void OnSetInitialFocus(bool reverse); | 742 void OnSetInitialFocus(bool reverse); |
742 void OnSetPageEncoding(const std::string& encoding_name); | 743 void OnSetPageEncoding(const std::string& encoding_name); |
743 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 744 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
744 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 745 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
745 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 746 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
| 747 void OnSetZoomLevelForView(bool uses_temporary_zoom_level, double level); |
746 void OnStop(); | 748 void OnStop(); |
747 void OnStopFinding(StopFindAction action); | 749 void OnStopFinding(StopFindAction action); |
748 void OnSuppressDialogsUntilSwapOut(); | 750 void OnSuppressDialogsUntilSwapOut(); |
749 void OnThemeChanged(); | 751 void OnThemeChanged(); |
750 void OnUpdateTargetURLAck(); | 752 void OnUpdateTargetURLAck(); |
751 void OnUpdateWebPreferences(const WebPreferences& prefs); | 753 void OnUpdateWebPreferences(const WebPreferences& prefs); |
752 void OnZoom(PageZoom zoom); | 754 void OnZoom(PageZoom zoom); |
753 void OnEnableViewSourceMode(); | 755 void OnEnableViewSourceMode(); |
754 void OnDisownOpener(); | 756 void OnDisownOpener(); |
755 void OnWindowSnapshotCompleted(const int snapshot_id, | 757 void OnWindowSnapshotCompleted(const int snapshot_id, |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 | 1013 |
1012 // The URL the user's mouse is hovering over. | 1014 // The URL the user's mouse is hovering over. |
1013 GURL mouse_over_url_; | 1015 GURL mouse_over_url_; |
1014 | 1016 |
1015 // The URL that has keyboard focus. | 1017 // The URL that has keyboard focus. |
1016 GURL focus_url_; | 1018 GURL focus_url_; |
1017 | 1019 |
1018 // The next target URL we want to send to the browser. | 1020 // The next target URL we want to send to the browser. |
1019 GURL pending_target_url_; | 1021 GURL pending_target_url_; |
1020 | 1022 |
| 1023 // Indicates whether this view overrides url-based zoom settings. |
| 1024 bool uses_temporary_zoom_level_; |
| 1025 |
1021 #if defined(OS_ANDROID) | 1026 #if defined(OS_ANDROID) |
1022 // Cache the old top controls state constraints. Used when updating | 1027 // Cache the old top controls state constraints. Used when updating |
1023 // current value only without altering the constraints. | 1028 // current value only without altering the constraints. |
1024 cc::TopControlsState top_controls_constraints_; | 1029 cc::TopControlsState top_controls_constraints_; |
1025 #endif | 1030 #endif |
1026 | 1031 |
1027 // View ---------------------------------------------------------------------- | 1032 // View ---------------------------------------------------------------------- |
1028 | 1033 |
1029 // Cache the preferred size of the page in order to prevent sending the IPC | 1034 // Cache the preferred size of the page in order to prevent sending the IPC |
1030 // when layout() recomputes but doesn't actually change sizes. | 1035 // when layout() recomputes but doesn't actually change sizes. |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1184 // use the Observer interface to filter IPC messages and receive frame change | 1189 // use the Observer interface to filter IPC messages and receive frame change |
1185 // notifications. | 1190 // notifications. |
1186 // --------------------------------------------------------------------------- | 1191 // --------------------------------------------------------------------------- |
1187 | 1192 |
1188 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1193 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1189 }; | 1194 }; |
1190 | 1195 |
1191 } // namespace content | 1196 } // namespace content |
1192 | 1197 |
1193 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1198 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |