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

Side by Side Diff: chrome/browser/ui/views/frame/browser_root_view.h

Issue 552503003: Introduce EventProcessor::OnEventProcessingStarted() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sadrul comments addressed Created 6 years, 2 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_root_view.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 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_
7 7
8 #include "ui/views/widget/root_view.h" 8 #include "ui/views/widget/root_view.h"
9 9
10 class BrowserView; 10 class BrowserView;
(...skipping 24 matching lines...) Expand all
35 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; 35 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE;
36 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE; 36 virtual void OnDragEntered(const ui::DropTargetEvent& event) OVERRIDE;
37 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; 37 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
38 virtual void OnDragExited() OVERRIDE; 38 virtual void OnDragExited() OVERRIDE;
39 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 39 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
40 virtual const char* GetClassName() const OVERRIDE; 40 virtual const char* GetClassName() const OVERRIDE;
41 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; 41 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE;
42 42
43 private: 43 private:
44 // ui::EventProcessor: 44 // ui::EventProcessor:
45 virtual ui::EventDispatchDetails OnEventFromSource(ui::Event* event) OVERRIDE; 45 virtual void OnEventProcessingStarted(ui::Event* event) OVERRIDE;
46 46
47 // Returns true if the event should be forwarded to the tabstrip. 47 // Returns true if the event should be forwarded to the tabstrip.
48 bool ShouldForwardToTabStrip(const ui::DropTargetEvent& event); 48 bool ShouldForwardToTabStrip(const ui::DropTargetEvent& event);
49 49
50 // Converts the event from the hosts coordinate system to the tabstrips 50 // Converts the event from the hosts coordinate system to the tabstrips
51 // coordinate system. 51 // coordinate system.
52 ui::DropTargetEvent* MapEventToTabStrip( 52 ui::DropTargetEvent* MapEventToTabStrip(
53 const ui::DropTargetEvent& event, 53 const ui::DropTargetEvent& event,
54 const ui::OSExchangeData& data); 54 const ui::OSExchangeData& data);
55 55
56 inline TabStrip* tabstrip() const; 56 inline TabStrip* tabstrip() const;
57 57
58 // Returns true if |data| has string contents and the user can "paste and go". 58 // Returns true if |data| has string contents and the user can "paste and go".
59 // If |url| is non-NULL and the user can "paste and go", |url| is set to the 59 // If |url| is non-NULL and the user can "paste and go", |url| is set to the
60 // desired destination. 60 // desired destination.
61 bool GetPasteAndGoURL(const ui::OSExchangeData& data, GURL* url); 61 bool GetPasteAndGoURL(const ui::OSExchangeData& data, GURL* url);
62 62
63 // The BrowserView. 63 // The BrowserView.
64 BrowserView* browser_view_; 64 BrowserView* browser_view_;
65 65
66 // If true, drag and drop events are being forwarded to the tab strip. 66 // If true, drag and drop events are being forwarded to the tab strip.
67 // This is used to determine when to send OnDragEntered and OnDragExited 67 // This is used to determine when to send OnDragEntered and OnDragExited
68 // to the tab strip. 68 // to the tab strip.
69 bool forwarding_to_tab_strip_; 69 bool forwarding_to_tab_strip_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(BrowserRootView); 71 DISALLOW_COPY_AND_ASSIGN(BrowserRootView);
72 }; 72 };
73 73
74 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_ 74 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_root_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698