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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 bool cached_has_main_frame_horizontal_scrollbar_; | 1128 bool cached_has_main_frame_horizontal_scrollbar_; |
1129 bool cached_has_main_frame_vertical_scrollbar_; | 1129 bool cached_has_main_frame_vertical_scrollbar_; |
1130 | 1130 |
1131 #if defined(OS_MACOSX) | 1131 #if defined(OS_MACOSX) |
1132 // Track the fake plugin window handles allocated on the browser side for | 1132 // Track the fake plugin window handles allocated on the browser side for |
1133 // the accelerated compositor and (currently) accelerated plugins so that | 1133 // the accelerated compositor and (currently) accelerated plugins so that |
1134 // we can discard them when the view goes away. | 1134 // we can discard them when the view goes away. |
1135 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_; | 1135 std::set<gfx::PluginWindowHandle> fake_plugin_window_handles_; |
1136 #endif | 1136 #endif |
1137 | 1137 |
1138 // When this view is composited, the context used for compositing may or may | |
1139 // not support the GL_CHROMIUM_swapbuffers_complete_callback extension. Since | |
1140 // querying for the existence of this extension is expensive we cache the | |
1141 // result. These are used to implement SupportsAsynchronousSwapBuffers(). | |
1142 bool context_has_swapbuffers_complete_callback_; | |
1143 bool queried_for_swapbuffers_complete_callback_; | |
1144 | |
1145 // Helper objects ------------------------------------------------------------ | 1138 // Helper objects ------------------------------------------------------------ |
1146 | 1139 |
1147 RendererWebCookieJarImpl cookie_jar_; | 1140 RendererWebCookieJarImpl cookie_jar_; |
1148 | 1141 |
1149 // The next group of objects all implement RenderViewObserver, so are deleted | 1142 // The next group of objects all implement RenderViewObserver, so are deleted |
1150 // along with the RenderView automatically. This is why we just store | 1143 // along with the RenderView automatically. This is why we just store |
1151 // weak references. | 1144 // weak references. |
1152 | 1145 |
1153 // Holds a reference to the service which provides desktop notifications. | 1146 // Holds a reference to the service which provides desktop notifications. |
1154 NotificationProvider* notification_provider_; | 1147 NotificationProvider* notification_provider_; |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1267 // bunch of stuff, you should probably create a helper class and put your | 1260 // bunch of stuff, you should probably create a helper class and put your |
1268 // data and methods on that to avoid bloating RenderView more. You can | 1261 // data and methods on that to avoid bloating RenderView more. You can |
1269 // use the Observer interface to filter IPC messages and receive frame change | 1262 // use the Observer interface to filter IPC messages and receive frame change |
1270 // notifications. | 1263 // notifications. |
1271 // --------------------------------------------------------------------------- | 1264 // --------------------------------------------------------------------------- |
1272 | 1265 |
1273 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1266 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1274 }; | 1267 }; |
1275 | 1268 |
1276 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1269 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |