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

Side by Side Diff: chrome/browser/ui/views/location_bar/mic_search_view.cc

Issue 21696003: views/location_bar: Eliminate TouchableLocationBarView. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix wrapping Created 7 years, 4 months 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/ui/views/location_bar/mic_search_view.h"
6
7 #include "chrome/browser/ui/view_ids.h"
8 #include "grit/generated_resources.h"
9 #include "grit/theme_resources.h"
10 #include "ui/base/accessibility/accessible_view_state.h"
11 #include "ui/base/l10n/l10n_util.h"
12 #include "ui/base/resource/resource_bundle.h"
13
14 MicSearchView::MicSearchView(views::ButtonListener* button_listener)
15 : views::ImageButton(button_listener) {
16 set_id(VIEW_ID_MIC_SEARCH_BUTTON);
17 set_accessibility_focusable(true);
18 SetTooltipText(l10n_util::GetStringUTF16(IDS_TOOLTIP_MIC_SEARCH));
19 SetImage(STATE_NORMAL,
20 ui::ResourceBundle::GetSharedInstance().GetImageSkiaNamed(
21 IDR_OMNIBOX_MIC_SEARCH));
22 SetImageAlignment(ALIGN_CENTER, ALIGN_MIDDLE);
23 TouchableLocationBarView::Init(this);
24 }
25
26 MicSearchView::~MicSearchView() {
27 }
28
29 int MicSearchView::GetBuiltInHorizontalPadding() const {
30 return GetBuiltInHorizontalPaddingImpl();
31 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/mic_search_view.h ('k') | chrome/browser/ui/views/location_bar/open_pdf_in_reader_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698