OLD | NEW |
---|---|
(Empty) | |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H__ | |
6 #define CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H__ | |
7 | |
8 #include <set> | |
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( | |
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 }; | |
Peter Kasting
2013/01/18 18:19:27
Nit: DISALLOW_COPY_AND_ASSIGN()
Tom Cassiotis
2013/01/18 21:24:19
Done.
| |
29 | |
30 #endif // CHROME_BROWSER_UI_VIEWS_HOME_BUTTON_H__ | |
31 | |
Peter Kasting
2013/01/18 18:19:27
Extra newline. I know you added this because Riet
Tom Cassiotis
2013/01/18 21:24:19
Done.
| |
OLD | NEW |