Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
tfarina
2013/01/28 02:37:11
nit: new files are Copyright 2013.
see crbug.com/1
Tom Cassiotis
2013/01/28 15:34:33
Done.
| |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H__ | |
|
tfarina
2013/01/28 02:37:11
nit: CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H_
Tom Cassiotis
2013/01/28 15:34:33
Done.
| |
| 6 #define CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H__ | |
| 7 | |
| 8 #include <set> | |
|
tfarina
2013/01/28 02:37:11
no need to include that. it's part of image_button
Tom Cassiotis
2013/01/28 15:34:33
This was specifically added to address the automat
| |
| 9 | |
| 10 #include "ui/views/controls/button/image_button.h" | |
| 11 | |
| 12 class Browser; | |
| 13 | |
| 14 class HomeImageButton : public views::ImageButton { | |
| 15 public: | |
| 16 HomeImageButton(views::ButtonListener* listener, Browser* browser); | |
| 17 virtual ~HomeImageButton(); | |
| 18 | |
| 19 virtual bool GetDropFormats( | |
|
tfarina
2013/01/28 02:37:11
// views::ImageButton:
as Peter prefers ;)
Tom Cassiotis
2013/01/28 15:34:33
Done.
| |
| 20 int* formats, | |
| 21 std::set<OSExchangeData::CustomFormat>* custom_formats) OVERRIDE; | |
| 22 virtual bool CanDrop(const OSExchangeData& data) OVERRIDE; | |
| 23 virtual int OnDragUpdated(const ui::DropTargetEvent& event) OVERRIDE; | |
| 24 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE; | |
| 25 | |
| 26 private: | |
| 27 Browser* browser_; | |
| 28 | |
| 29 DISALLOW_COPY_AND_ASSIGN(HomeImageButton); | |
| 30 }; | |
| 31 | |
| 32 #endif // CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H__ | |
| OLD | NEW |