| OLD | NEW |
| 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_TOOLBAR_HOME_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_TOOLBAR_HOME_BUTTON_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_TOOLBAR_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 "chrome/browser/ui/views/toolbar/toolbar_button.h" | 10 #include "chrome/browser/ui/views/toolbar/toolbar_button.h" |
| 11 | 11 |
| 12 class Browser; | 12 class Browser; |
| 13 | 13 |
| 14 class HomeButton : public ToolbarButton { | 14 class HomeButton : public ToolbarButton { |
| 15 public: | 15 public: |
| 16 HomeButton(views::ButtonListener* listener, Browser* browser); | 16 HomeButton(views::ButtonListener* listener, Browser* browser); |
| 17 virtual ~HomeButton(); | 17 virtual ~HomeButton(); |
| 18 | 18 |
| 19 // ToolbarButton: | 19 // ToolbarButton: |
| 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 // ToolbarButton: | 28 // ToolbarButton: |
| 29 virtual void NotifyClick(const ui::Event& event) OVERRIDE; | 29 virtual void NotifyClick(const ui::Event& event) override; |
| 30 | 30 |
| 31 Browser* browser_; | 31 Browser* browser_; |
| 32 | 32 |
| 33 DISALLOW_COPY_AND_ASSIGN(HomeButton); | 33 DISALLOW_COPY_AND_ASSIGN(HomeButton); |
| 34 }; | 34 }; |
| 35 | 35 |
| 36 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_HOME_BUTTON_H_ | 36 #endif // CHROME_BROWSER_UI_VIEWS_TOOLBAR_HOME_BUTTON_H_ |
| OLD | NEW |