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