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

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: ifdefs removed 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 // Overridden from internal::RootView:
43 virtual void DispatchGestureEvent(ui::GestureEvent* event) OVERRIDE;
44
42 private: 45 private:
43 // Returns true if the event should be forwarded to the tabstrip. 46 // Returns true if the event should be forwarded to the tabstrip.
44 bool ShouldForwardToTabStrip(const ui::DropTargetEvent& event); 47 bool ShouldForwardToTabStrip(const ui::DropTargetEvent& event);
45 48
46 // Converts the event from the hosts coordinate system to the tabstrips 49 // Converts the event from the hosts coordinate system to the tabstrips
47 // coordinate system. 50 // coordinate system.
48 ui::DropTargetEvent* MapEventToTabStrip( 51 ui::DropTargetEvent* MapEventToTabStrip(
49 const ui::DropTargetEvent& event, 52 const ui::DropTargetEvent& event,
50 const ui::OSExchangeData& data); 53 const ui::OSExchangeData& data);
51 54
52 inline TabStrip* tabstrip() const; 55 inline TabStrip* tabstrip() const;
53 56
54 // Returns true if |data| has string contents and the user can "paste and go". 57 // 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 58 // If |url| is non-NULL and the user can "paste and go", |url| is set to the
56 // desired destination. 59 // desired destination.
57 bool GetPasteAndGoURL(const ui::OSExchangeData& data, GURL* url); 60 bool GetPasteAndGoURL(const ui::OSExchangeData& data, GURL* url);
58 61
59 // The BrowserView. 62 // The BrowserView.
60 BrowserView* browser_view_; 63 BrowserView* browser_view_;
61 64
62 // If true, drag and drop events are being forwarded to the tab strip. 65 // 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 66 // This is used to determine when to send OnDragEntered and OnDragExited
64 // to the tab strip. 67 // to the tab strip.
65 bool forwarding_to_tab_strip_; 68 bool forwarding_to_tab_strip_;
66 69
67 DISALLOW_COPY_AND_ASSIGN(BrowserRootView); 70 DISALLOW_COPY_AND_ASSIGN(BrowserRootView);
68 }; 71 };
69 72
70 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_ 73 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_ROOT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698