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_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 5 #ifndef CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 6 #define CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 | 388 |
389 // Uses a CARenderer to draw the plugin's layer in our OpenGL surface. | 389 // Uses a CARenderer to draw the plugin's layer in our OpenGL surface. |
390 void DrawLayerInSurface(); | 390 void DrawLayerInSurface(); |
391 | 391 |
392 bool use_buffer_context_; | 392 bool use_buffer_context_; |
393 CGContextRef buffer_context_; // Weak ref. | 393 CGContextRef buffer_context_; // Weak ref. |
394 | 394 |
395 CALayer* layer_; // Used for CA drawing mode. Weak, retained by plugin. | 395 CALayer* layer_; // Used for CA drawing mode. Weak, retained by plugin. |
396 WebPluginAcceleratedSurface* surface_; // Weak ref. | 396 WebPluginAcceleratedSurface* surface_; // Weak ref. |
397 CARenderer* renderer_; // Renders layer_ to surface_. | 397 CARenderer* renderer_; // Renders layer_ to surface_. |
398 scoped_ptr<base::RepeatingTimer<WebPluginDelegateImpl> > redraw_timer_; | 398 scoped_ptr<base::RepeatingTimer> redraw_timer_; |
399 | 399 |
400 // The upper-left corner of the web content area in screen coordinates, | 400 // The upper-left corner of the web content area in screen coordinates, |
401 // relative to an upper-left (0,0). | 401 // relative to an upper-left (0,0). |
402 gfx::Point content_area_origin_; | 402 gfx::Point content_area_origin_; |
403 | 403 |
404 bool containing_window_has_focus_; | 404 bool containing_window_has_focus_; |
405 bool initial_window_focus_; | 405 bool initial_window_focus_; |
406 bool container_is_visible_; | 406 bool container_is_visible_; |
407 bool have_called_set_window_; | 407 bool have_called_set_window_; |
408 | 408 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
471 // asynchronously. | 471 // asynchronously. |
472 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; | 472 base::WeakPtrFactory<WebPluginDelegateImpl> user_gesture_msg_factory_; |
473 #endif | 473 #endif |
474 | 474 |
475 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); | 475 DISALLOW_COPY_AND_ASSIGN(WebPluginDelegateImpl); |
476 }; | 476 }; |
477 | 477 |
478 } // namespace content | 478 } // namespace content |
479 | 479 |
480 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ | 480 #endif // CONTENT_CHILD_NPAPI_WEBPLUGIN_DELEGATE_IMPL_H_ |
OLD | NEW |