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

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

Issue 16832003: Add UMA metrics to measure the effectiveness of views fuzzing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments addressed Created 7 years, 5 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_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 21 matching lines...) Expand all
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 41
42 #if defined(USE_ASH)
sky 2013/06/26 23:42:55 Try to minimize ifdefs by nuking the ifdef here an
tdanderson 2013/06/27 22:39:33 Done.
43 // Overridden from internal::RootView:
44 virtual void DispatchGestureEvent(ui::GestureEvent* event) OVERRIDE;
45 #endif
46
42 private: 47 private:
43 // Returns true if the event should be forwarded to the tabstrip. 48 // Returns true if the event should be forwarded to the tabstrip.
44 bool ShouldForwardToTabStrip(const ui::DropTargetEvent& event); 49 bool ShouldForwardToTabStrip(const ui::DropTargetEvent& event);
45 50
46 // Converts the event from the hosts coordinate system to the tabstrips 51 // Converts the event from the hosts coordinate system to the tabstrips
47 // coordinate system. 52 // coordinate system.
48 ui::DropTargetEvent* MapEventToTabStrip( 53 ui::DropTargetEvent* MapEventToTabStrip(
49 const ui::DropTargetEvent& event, 54 const ui::DropTargetEvent& event,
50 const ui::OSExchangeData& data); 55 const ui::OSExchangeData& data);
51 56
52 inline TabStrip* tabstrip() const; 57 inline TabStrip* tabstrip() const;
53 58
54 // Returns true if |data| has string contents and the user can "paste and go". 59 // Returns true if |data| has string contents and the user can "paste and go".
55 // If |url| is non-NULL and the user can "paste and go", |url| is set to the 60 // If |url| is non-NULL and the user can "paste and go", |url| is set to the
56 // desired destination. 61 // desired destination.
57 bool GetPasteAndGoURL(const ui::OSExchangeData& data, GURL* url); 62 bool GetPasteAndGoURL(const ui::OSExchangeData& data, GURL* url);
58 63
59 // The BrowserView. 64 // The BrowserView.
60 BrowserView* browser_view_; 65 BrowserView* browser_view_;
61 66
62 // If true, drag and drop events are being forwarded to the tab strip. 67 // If true, drag and drop events are being forwarded to the tab strip.
63 // This is used to determine when to send OnDragEntered and OnDragExited 68 // This is used to determine when to send OnDragEntered and OnDragExited
64 // to the tab strip. 69 // to the tab strip.
65 bool forwarding_to_tab_strip_; 70 bool forwarding_to_tab_strip_;
66 71
67 DISALLOW_COPY_AND_ASSIGN(BrowserRootView); 72 DISALLOW_COPY_AND_ASSIGN(BrowserRootView);
68 }; 73 };
69 74
70 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_ 75 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698