OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_H_ |
6 #define CONTENT_RENDERER_RENDER_VIEW_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
874 const WebKit::WebURLError& error, | 874 const WebKit::WebURLError& error, |
875 bool replace); | 875 bool replace); |
876 | 876 |
877 // Starts nav_state_sync_timer_ if it isn't already running. | 877 // Starts nav_state_sync_timer_ if it isn't already running. |
878 void StartNavStateSyncTimerIfNecessary(); | 878 void StartNavStateSyncTimerIfNecessary(); |
879 | 879 |
880 // Dispatches the current navigation state to the browser. Called on a | 880 // Dispatches the current navigation state to the browser. Called on a |
881 // periodic timer so we don't send too many messages. | 881 // periodic timer so we don't send too many messages. |
882 void SyncNavigationState(); | 882 void SyncNavigationState(); |
883 | 883 |
884 #if defined(OS_LINUX) | 884 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
885 void UpdateFontRenderingFromRendererPrefs(); | 885 void UpdateFontRenderingFromRendererPrefs(); |
886 #else | 886 #else |
887 void UpdateFontRenderingFromRendererPrefs() {} | 887 void UpdateFontRenderingFromRendererPrefs() {} |
888 #endif | 888 #endif |
889 | 889 |
890 // Update the target url and tell the browser that the target URL has changed. | 890 // Update the target url and tell the browser that the target URL has changed. |
891 // If |url| is empty, show |fallback_url|. | 891 // If |url| is empty, show |fallback_url|. |
892 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); | 892 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); |
893 | 893 |
894 // --------------------------------------------------------------------------- | 894 // --------------------------------------------------------------------------- |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1158 // bunch of stuff, you should probably create a helper class and put your | 1158 // bunch of stuff, you should probably create a helper class and put your |
1159 // data and methods on that to avoid bloating RenderView more. You can use | 1159 // data and methods on that to avoid bloating RenderView more. You can use |
1160 // the Observer interface to filter IPC messages and receive frame change | 1160 // the Observer interface to filter IPC messages and receive frame change |
1161 // notifications. | 1161 // notifications. |
1162 // --------------------------------------------------------------------------- | 1162 // --------------------------------------------------------------------------- |
1163 | 1163 |
1164 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1164 DISALLOW_COPY_AND_ASSIGN(RenderView); |
1165 }; | 1165 }; |
1166 | 1166 |
1167 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1167 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
OLD | NEW |