| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 WebKit::WebView* webview() const; | 202 WebKit::WebView* webview() const; |
| 203 | 203 |
| 204 // Called by a GraphicsContext associated with this view when swapbuffers | 204 // Called by a GraphicsContext associated with this view when swapbuffers |
| 205 // completes or is aborted. | 205 // completes or is aborted. |
| 206 void OnViewContextSwapBuffersComplete(); | 206 void OnViewContextSwapBuffersComplete(); |
| 207 void OnViewContextSwapBuffersAborted(); | 207 void OnViewContextSwapBuffersAborted(); |
| 208 | 208 |
| 209 int page_id() const { return page_id_; } | 209 int page_id() const { return page_id_; } |
| 210 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } | 210 PepperPluginDelegateImpl* pepper_delegate() { return &pepper_delegate_; } |
| 211 | 211 |
| 212 AudioMessageFilter* audio_message_filter() { | |
| 213 return audio_message_filter_; | |
| 214 } | |
| 215 | |
| 216 const WebPreferences& webkit_preferences() const { | 212 const WebPreferences& webkit_preferences() const { |
| 217 return webkit_preferences_; | 213 return webkit_preferences_; |
| 218 } | 214 } |
| 219 | 215 |
| 220 bool content_state_immediately() { return send_content_state_immediately_; } | 216 bool content_state_immediately() { return send_content_state_immediately_; } |
| 221 int enabled_bindings() const { return enabled_bindings_; } | 217 int enabled_bindings() const { return enabled_bindings_; } |
| 222 void set_enabled_bindings(int b) { enabled_bindings_ = b; } | 218 void set_enabled_bindings(int b) { enabled_bindings_ = b; } |
| 223 void set_send_content_state_immediately(bool value) { | 219 void set_send_content_state_immediately(bool value) { |
| 224 send_content_state_immediately_ = value; | 220 send_content_state_immediately_ = value; |
| 225 } | 221 } |
| (...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1159 // bunch of stuff, you should probably create a helper class and put your | 1155 // bunch of stuff, you should probably create a helper class and put your |
| 1160 // data and methods on that to avoid bloating RenderView more. You can use | 1156 // data and methods on that to avoid bloating RenderView more. You can use |
| 1161 // the Observer interface to filter IPC messages and receive frame change | 1157 // the Observer interface to filter IPC messages and receive frame change |
| 1162 // notifications. | 1158 // notifications. |
| 1163 // --------------------------------------------------------------------------- | 1159 // --------------------------------------------------------------------------- |
| 1164 | 1160 |
| 1165 DISALLOW_COPY_AND_ASSIGN(RenderView); | 1161 DISALLOW_COPY_AND_ASSIGN(RenderView); |
| 1166 }; | 1162 }; |
| 1167 | 1163 |
| 1168 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ | 1164 #endif // CONTENT_RENDERER_RENDER_VIEW_H_ |
| OLD | NEW |