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

Side by Side Diff: chrome/browser/ui/views/toolbar_view.h

Issue 10082029: Ash: Fix hit testing for the bottom pixels of tabs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/toolbar_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_TOOLBAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const content::NotificationSource& source, 117 const content::NotificationSource& source,
118 const content::NotificationDetails& details) OVERRIDE; 118 const content::NotificationDetails& details) OVERRIDE;
119 119
120 // Overridden from ui::AcceleratorProvider: 120 // Overridden from ui::AcceleratorProvider:
121 virtual bool GetAcceleratorForCommandId( 121 virtual bool GetAcceleratorForCommandId(
122 int command_id, ui::Accelerator* accelerator) OVERRIDE; 122 int command_id, ui::Accelerator* accelerator) OVERRIDE;
123 123
124 // Overridden from views::View: 124 // Overridden from views::View:
125 virtual gfx::Size GetPreferredSize() OVERRIDE; 125 virtual gfx::Size GetPreferredSize() OVERRIDE;
126 virtual void Layout() OVERRIDE; 126 virtual void Layout() OVERRIDE;
127 virtual bool HitTest(const gfx::Point& l) const OVERRIDE;
127 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 128 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
128 virtual bool GetDropFormats( 129 virtual bool GetDropFormats(
129 int* formats, 130 int* formats,
130 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 131 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
131 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE; 132 virtual bool CanDrop(const ui::OSExchangeData& data) OVERRIDE;
132 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE; 133 virtual int OnDragUpdated(const views::DropTargetEvent& event) OVERRIDE;
133 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; 134 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE;
134 virtual void OnThemeChanged() OVERRIDE; 135 virtual void OnThemeChanged() OVERRIDE;
135 virtual std::string GetClassName() const OVERRIDE; 136 virtual std::string GetClassName() const OVERRIDE;
136 virtual bool AcceleratorPressed(const ui::Accelerator& acc) OVERRIDE; 137 virtual bool AcceleratorPressed(const ui::Accelerator& acc) OVERRIDE;
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 214
214 // A list of listeners to call when the menu opens. 215 // A list of listeners to call when the menu opens.
215 ObserverList<views::MenuListener> menu_listeners_; 216 ObserverList<views::MenuListener> menu_listeners_;
216 217
217 content::NotificationRegistrar registrar_; 218 content::NotificationRegistrar registrar_;
218 219
219 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView); 220 DISALLOW_IMPLICIT_CONSTRUCTORS(ToolbarView);
220 }; 221 };
221 222
222 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_ 223 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | chrome/browser/ui/views/toolbar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698