Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(328)

Side by Side Diff: content/child/npapi/webplugin_delegate_impl.h

Issue 1355063004: Template methods on Timer classes instead of the classes themselves. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: timer: fixcaller Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/browser/tracing/background_tracing_rule.cc ('k') | content/child/npapi/webplugin_delegate_impl_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698