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

Side by Side Diff: webkit/plugins/ppapi/ppb_scrollbar_impl.cc

Issue 14307012: webkit: Remove use of ALLOW_THIS_IN_INITIALIZER_LIST. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppb_graphics_3d_impl.cc ('k') | webkit/plugins/ppapi/quota_file_io.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h" 5 #include "webkit/plugins/ppapi/ppb_scrollbar_impl.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "ppapi/c/dev/ppp_scrollbar_dev.h" 10 #include "ppapi/c/dev/ppp_scrollbar_dev.h"
(...skipping 28 matching lines...) Expand all
39 PP_Resource PPB_Scrollbar_Impl::Create(PP_Instance instance, 39 PP_Resource PPB_Scrollbar_Impl::Create(PP_Instance instance,
40 bool vertical) { 40 bool vertical) {
41 scoped_refptr<PPB_Scrollbar_Impl> scrollbar( 41 scoped_refptr<PPB_Scrollbar_Impl> scrollbar(
42 new PPB_Scrollbar_Impl(instance)); 42 new PPB_Scrollbar_Impl(instance));
43 scrollbar->Init(vertical); 43 scrollbar->Init(vertical);
44 return scrollbar->GetReference(); 44 return scrollbar->GetReference();
45 } 45 }
46 46
47 PPB_Scrollbar_Impl::PPB_Scrollbar_Impl(PP_Instance instance) 47 PPB_Scrollbar_Impl::PPB_Scrollbar_Impl(PP_Instance instance)
48 : PPB_Widget_Impl(instance), 48 : PPB_Widget_Impl(instance),
49 ALLOW_THIS_IN_INITIALIZER_LIST(weak_ptr_factory_(this)) { 49 weak_ptr_factory_(this) {
50 } 50 }
51 51
52 PPB_Scrollbar_Impl::~PPB_Scrollbar_Impl() { 52 PPB_Scrollbar_Impl::~PPB_Scrollbar_Impl() {
53 } 53 }
54 54
55 void PPB_Scrollbar_Impl::Init(bool vertical) { 55 void PPB_Scrollbar_Impl::Init(bool vertical) {
56 PluginInstance* plugin_instance = ResourceHelper::GetPluginInstance(this); 56 PluginInstance* plugin_instance = ResourceHelper::GetPluginInstance(this);
57 if (!plugin_instance) 57 if (!plugin_instance)
58 return; 58 return;
59 scrollbar_.reset(WebPluginScrollbar::createForPlugin( 59 scrollbar_.reset(WebPluginScrollbar::createForPlugin(
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 pp_rect.point.x = dirty_.x(); 241 pp_rect.point.x = dirty_.x();
242 pp_rect.point.y = dirty_.y(); 242 pp_rect.point.y = dirty_.y();
243 pp_rect.size.width = dirty_.width(); 243 pp_rect.size.width = dirty_.width();
244 pp_rect.size.height = dirty_.height(); 244 pp_rect.size.height = dirty_.height();
245 dirty_ = gfx::Rect(); 245 dirty_ = gfx::Rect();
246 Invalidate(&pp_rect); 246 Invalidate(&pp_rect);
247 } 247 }
248 248
249 } // namespace ppapi 249 } // namespace ppapi
250 } // namespace webkit 250 } // namespace webkit
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppb_graphics_3d_impl.cc ('k') | webkit/plugins/ppapi/quota_file_io.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698