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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
955 // Dispatches the current navigation state to the browser. Called on a | 955 // Dispatches the current navigation state to the browser. Called on a |
956 // periodic timer so we don't send too many messages. | 956 // periodic timer so we don't send too many messages. |
957 void SyncNavigationState(); | 957 void SyncNavigationState(); |
958 | 958 |
959 // Dispatches the current state of selection on the webpage to the browser if | 959 // Dispatches the current state of selection on the webpage to the browser if |
960 // it has changed. | 960 // it has changed. |
961 // TODO(varunjain): delete this method once we figure out how to keep | 961 // TODO(varunjain): delete this method once we figure out how to keep |
962 // selection handles in sync with the webpage. | 962 // selection handles in sync with the webpage. |
963 void SyncSelectionIfRequired(); | 963 void SyncSelectionIfRequired(); |
964 | 964 |
965 #if defined(OS_POSIX) && !defined(OS_MACOSX) | 965 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) |
966 void UpdateFontRenderingFromRendererPrefs(); | 966 void UpdateFontRenderingFromRendererPrefs(); |
967 #else | 967 #else |
968 void UpdateFontRenderingFromRendererPrefs() {} | 968 void UpdateFontRenderingFromRendererPrefs() {} |
969 #endif | 969 #endif |
970 | 970 |
971 // Update the target url and tell the browser that the target URL has changed. | 971 // Update the target url and tell the browser that the target URL has changed. |
972 // If |url| is empty, show |fallback_url|. | 972 // If |url| is empty, show |fallback_url|. |
973 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); | 973 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); |
974 | 974 |
975 // --------------------------------------------------------------------------- | 975 // --------------------------------------------------------------------------- |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 // bunch of stuff, you should probably create a helper class and put your | 1269 // bunch of stuff, you should probably create a helper class and put your |
1270 // data and methods on that to avoid bloating RenderView more. You can | 1270 // data and methods on that to avoid bloating RenderView more. You can |
1271 // use the Observer interface to filter IPC messages and receive frame change | 1271 // use the Observer interface to filter IPC messages and receive frame change |
1272 // notifications. | 1272 // notifications. |
1273 // --------------------------------------------------------------------------- | 1273 // --------------------------------------------------------------------------- |
1274 | 1274 |
1275 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1275 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1276 }; | 1276 }; |
1277 | 1277 |
1278 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1278 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |