OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_LOCATION_BAR_MIC_SEARCH_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_MIC_SEARCH_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_MIC_SEARCH_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_MIC_SEARCH_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/views/location_bar/touchable_location_bar_view.h" | |
9 #include "ui/views/controls/button/image_button.h" | 8 #include "ui/views/controls/button/image_button.h" |
10 | 9 |
11 class CommandUpdater; | 10 class MicSearchView : public views::ImageButton { |
12 | |
13 class MicSearchView : public views::ImageButton, | |
14 public TouchableLocationBarView { | |
15 public: | 11 public: |
16 explicit MicSearchView(views::ButtonListener* button_listener); | 12 explicit MicSearchView(views::ButtonListener* button_listener); |
17 virtual ~MicSearchView(); | 13 virtual ~MicSearchView(); |
18 | 14 |
19 // TouchableLocationBarView: | |
20 virtual int GetBuiltInHorizontalPadding() const OVERRIDE; | |
21 | |
22 private: | 15 private: |
23 DISALLOW_COPY_AND_ASSIGN(MicSearchView); | 16 DISALLOW_COPY_AND_ASSIGN(MicSearchView); |
24 }; | 17 }; |
25 | 18 |
26 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_MIC_SEARCH_VIEW_H_ | 19 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_MIC_SEARCH_VIEW_H_ |
OLD | NEW |