| 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 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1083 // Dispatches the current navigation state to the browser. Called on a | 1083 // Dispatches the current navigation state to the browser. Called on a |
| 1084 // periodic timer so we don't send too many messages. | 1084 // periodic timer so we don't send too many messages. |
| 1085 void SyncNavigationState(); | 1085 void SyncNavigationState(); |
| 1086 | 1086 |
| 1087 // Dispatches the current state of selection on the webpage to the browser if | 1087 // Dispatches the current state of selection on the webpage to the browser if |
| 1088 // it has changed. | 1088 // it has changed. |
| 1089 // TODO(varunjain): delete this method once we figure out how to keep | 1089 // TODO(varunjain): delete this method once we figure out how to keep |
| 1090 // selection handles in sync with the webpage. | 1090 // selection handles in sync with the webpage. |
| 1091 void SyncSelectionIfRequired(); | 1091 void SyncSelectionIfRequired(); |
| 1092 | 1092 |
| 1093 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_ANDROID) | 1093 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
| 1094 void UpdateFontRenderingFromRendererPrefs(); | 1094 void UpdateFontRenderingFromRendererPrefs(); |
| 1095 #else | 1095 #else |
| 1096 void UpdateFontRenderingFromRendererPrefs() {} | 1096 void UpdateFontRenderingFromRendererPrefs() {} |
| 1097 #endif | 1097 #endif |
| 1098 | 1098 |
| 1099 // Update the target url and tell the browser that the target URL has changed. | 1099 // Update the target url and tell the browser that the target URL has changed. |
| 1100 // If |url| is empty, show |fallback_url|. | 1100 // If |url| is empty, show |fallback_url|. |
| 1101 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); | 1101 void UpdateTargetURL(const GURL& url, const GURL& fallback_url); |
| 1102 | 1102 |
| 1103 // --------------------------------------------------------------------------- | 1103 // --------------------------------------------------------------------------- |
| (...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 // bunch of stuff, you should probably create a helper class and put your | 1428 // bunch of stuff, you should probably create a helper class and put your |
| 1429 // data and methods on that to avoid bloating RenderView more. You can | 1429 // data and methods on that to avoid bloating RenderView more. You can |
| 1430 // use the Observer interface to filter IPC messages and receive frame change | 1430 // use the Observer interface to filter IPC messages and receive frame change |
| 1431 // notifications. | 1431 // notifications. |
| 1432 // --------------------------------------------------------------------------- | 1432 // --------------------------------------------------------------------------- |
| 1433 | 1433 |
| 1434 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1434 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1435 }; | 1435 }; |
| 1436 | 1436 |
| 1437 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1437 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |