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 987 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
998 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); | 998 void OnSetHistoryLengthAndPrune(int history_length, int32 minimum_page_id); |
999 void OnSetInitialFocus(bool reverse); | 999 void OnSetInitialFocus(bool reverse); |
1000 void OnSetPageEncoding(const std::string& encoding_name); | 1000 void OnSetPageEncoding(const std::string& encoding_name); |
1001 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); | 1001 void OnSetRendererPrefs(const RendererPreferences& renderer_prefs); |
1002 void OnSetWebUIProperty(const std::string& name, const std::string& value); | 1002 void OnSetWebUIProperty(const std::string& name, const std::string& value); |
1003 void OnSetZoomLevel(double zoom_level); | 1003 void OnSetZoomLevel(double zoom_level); |
1004 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); | 1004 void OnSetZoomLevelForLoadingURL(const GURL& url, double zoom_level); |
1005 void OnShouldClose(); | 1005 void OnShouldClose(); |
1006 void OnStop(); | 1006 void OnStop(); |
1007 void OnStopFinding(StopFindAction action); | 1007 void OnStopFinding(StopFindAction action); |
| 1008 void OnSuppressDialogsUntilSwapOut(); |
1008 void OnSwapOut(); | 1009 void OnSwapOut(); |
1009 void OnThemeChanged(); | 1010 void OnThemeChanged(); |
1010 void OnUpdateTargetURLAck(); | 1011 void OnUpdateTargetURLAck(); |
1011 void OnUpdateTimezone(); | 1012 void OnUpdateTimezone(); |
1012 void OnUpdateWebPreferences(const WebPreferences& prefs); | 1013 void OnUpdateWebPreferences(const WebPreferences& prefs); |
1013 | 1014 |
1014 void OnZoom(PageZoom zoom); | 1015 void OnZoom(PageZoom zoom); |
1015 void OnZoomFactor(PageZoom zoom, int zoom_center_x, int zoom_center_y); | 1016 void OnZoomFactor(PageZoom zoom, int zoom_center_x, int zoom_center_y); |
1016 | 1017 |
1017 void OnEnableViewSourceMode(); | 1018 void OnEnableViewSourceMode(); |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1238 NavigationGesture navigation_gesture_; | 1239 NavigationGesture navigation_gesture_; |
1239 | 1240 |
1240 // Used for popups. | 1241 // Used for popups. |
1241 bool opened_by_user_gesture_; | 1242 bool opened_by_user_gesture_; |
1242 | 1243 |
1243 // Whether this RenderView was created by a frame that was suppressing its | 1244 // Whether this RenderView was created by a frame that was suppressing its |
1244 // opener. If so, we may want to load pages in a separate process. See | 1245 // opener. If so, we may want to load pages in a separate process. See |
1245 // decidePolicyForNavigation for details. | 1246 // decidePolicyForNavigation for details. |
1246 bool opener_suppressed_; | 1247 bool opener_suppressed_; |
1247 | 1248 |
| 1249 // Whether we must stop creating nested message loops for modal dialogs until |
| 1250 // OnSwapOut is called. This is necessary because modal dialogs have a |
| 1251 // PageGroupLoadDeferrer on the stack that interferes with swapping out. |
| 1252 bool suppress_dialogs_until_swap_out_; |
| 1253 |
1248 // Holds state pertaining to a navigation that we initiated. This is held by | 1254 // Holds state pertaining to a navigation that we initiated. This is held by |
1249 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ | 1255 // the WebDataSource::ExtraData attribute. We use pending_navigation_state_ |
1250 // as a temporary holder for the state until the WebDataSource corresponding | 1256 // as a temporary holder for the state until the WebDataSource corresponding |
1251 // to the new navigation is created. See DidCreateDataSource. | 1257 // to the new navigation is created. See DidCreateDataSource. |
1252 scoped_ptr<ViewMsg_Navigate_Params> pending_navigation_params_; | 1258 scoped_ptr<ViewMsg_Navigate_Params> pending_navigation_params_; |
1253 | 1259 |
1254 // Timer used to delay the updating of nav state (see SyncNavigationState). | 1260 // Timer used to delay the updating of nav state (see SyncNavigationState). |
1255 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_; | 1261 base::OneShotTimer<RenderViewImpl> nav_state_sync_timer_; |
1256 | 1262 |
1257 // Page IDs ------------------------------------------------------------------ | 1263 // Page IDs ------------------------------------------------------------------ |
(...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1561 // use the Observer interface to filter IPC messages and receive frame change | 1567 // use the Observer interface to filter IPC messages and receive frame change |
1562 // notifications. | 1568 // notifications. |
1563 // --------------------------------------------------------------------------- | 1569 // --------------------------------------------------------------------------- |
1564 | 1570 |
1565 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1571 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1566 }; | 1572 }; |
1567 | 1573 |
1568 } // namespace content | 1574 } // namespace content |
1569 | 1575 |
1570 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1576 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |