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

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

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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 12 matching lines...) Expand all
23 public: 23 public:
24 // Internal class name. 24 // Internal class name.
25 static const char kViewClassName[]; 25 static const char kViewClassName[];
26 26
27 // You must call set_tabstrip before this class will accept drops. 27 // You must call set_tabstrip before this class will accept drops.
28 BrowserRootView(BrowserView* browser_view, views::Widget* widget); 28 BrowserRootView(BrowserView* browser_view, views::Widget* widget);
29 29
30 // Overridden from views::View: 30 // Overridden from views::View:
31 virtual bool GetDropFormats( 31 virtual bool GetDropFormats(
32 int* formats, 32 int* formats,
33 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 33 std::set<ui::OSExchangeData::CustomFormat>* custom_formats) override;
34 virtual bool AreDropTypesRequired() OVERRIDE; 34 virtual bool AreDropTypesRequired() override;
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 void OnEventProcessingStarted(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 | « chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698