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

Side by Side Diff: chrome/browser/ui/views/tabs/tab_drag_controller.h

Issue 223483002: base: Do not allow MessagePumpObservers to consume events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tot-merge-r262009 Created 6 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
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 CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
232 content::WebContents* web_contents, 232 content::WebContents* web_contents,
233 const content::MediaStreamRequest& request, 233 const content::MediaStreamRequest& request,
234 const content::MediaResponseCallback& callback) OVERRIDE; 234 const content::MediaResponseCallback& callback) OVERRIDE;
235 235
236 // Overridden from content::NotificationObserver: 236 // Overridden from content::NotificationObserver:
237 virtual void Observe(int type, 237 virtual void Observe(int type,
238 const content::NotificationSource& source, 238 const content::NotificationSource& source,
239 const content::NotificationDetails& details) OVERRIDE; 239 const content::NotificationDetails& details) OVERRIDE;
240 240
241 // Overridden from MessageLoop::Observer: 241 // Overridden from MessageLoop::Observer:
242 virtual base::EventStatus WillProcessEvent( 242 virtual void WillProcessEvent(const base::NativeEvent& event) OVERRIDE;
243 const base::NativeEvent& event) OVERRIDE;
244 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE; 243 virtual void DidProcessEvent(const base::NativeEvent& event) OVERRIDE;
245 244
246 // Overriden from views::WidgetObserver: 245 // Overriden from views::WidgetObserver:
247 virtual void OnWidgetBoundsChanged(views::Widget* widget, 246 virtual void OnWidgetBoundsChanged(views::Widget* widget,
248 const gfx::Rect& new_bounds) OVERRIDE; 247 const gfx::Rect& new_bounds) OVERRIDE;
249 248
250 // Overriden from TabStripModelObserver: 249 // Overriden from TabStripModelObserver:
251 virtual void TabStripEmpty() OVERRIDE; 250 virtual void TabStripEmpty() OVERRIDE;
252 251
253 // Initialize the offset used to calculate the position to create windows 252 // Initialize the offset used to calculate the position to create windows
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
637 // See comment around use for more details. 636 // See comment around use for more details.
638 int attach_x_; 637 int attach_x_;
639 int attach_index_; 638 int attach_index_;
640 639
641 base::WeakPtrFactory<TabDragController> weak_factory_; 640 base::WeakPtrFactory<TabDragController> weak_factory_;
642 641
643 DISALLOW_COPY_AND_ASSIGN(TabDragController); 642 DISALLOW_COPY_AND_ASSIGN(TabDragController);
644 }; 643 };
645 644
646 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_ 645 #endif // CHROME_BROWSER_UI_VIEWS_TABS_TAB_DRAG_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/notifications/balloon_collection_views.cc ('k') | chrome/browser/ui/views/tabs/tab_drag_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698