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