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

Side by Side Diff: chrome/browser/ui/views/toolbar/home_button.h

Issue 71743002: [Toolbar Views] Move toolbar files to a new subdirectory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_HOME_BUTTON_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_HOME_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_HOME_BUTTON_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/button/image_button.h" 10 #include "ui/views/controls/button/image_button.h"
11 11
12 class Browser; 12 class Browser;
13 13
14 class HomeImageButton : public views::ImageButton { 14 class HomeImageButton : public views::ImageButton {
15 public: 15 public:
16 HomeImageButton(views::ButtonListener* listener, Browser* browser); 16 HomeImageButton(views::ButtonListener* listener, Browser* browser);
17 virtual ~HomeImageButton(); 17 virtual ~HomeImageButton();
18 18
19 // views::ImageButton: 19 // views::ImageButton:
20 virtual bool GetDropFormats( 20 virtual bool GetDropFormats(
21 int* formats, 21 int* formats,
22 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; 22 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE;
23 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE; 23 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE;
24 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; 24 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE;
25 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; 25 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
26 26
27 private: 27 private:
28 Browser* browser_; 28 Browser* browser_;
29 29
30 DISALLOW_COPY_AND_ASSIGN(HomeImageButton); 30 DISALLOW_COPY_AND_ASSIGN(HomeImageButton);
31 }; 31 };
32 32
33 #endif // CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H_ 33 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_HOME_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698