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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/mic_search_decoration.h

Issue 1428423002: Remove setVoiceSearchSupported part of EmbeddedSearch SearchBox API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
OLDNEW
(Empty)
1 // Copyright 2013 The Chromium Authors. All rights reserved.
msw 2015/11/06 23:59:22 Update chrome/chrome_browser_ui.gypi
Evan Stade 2015/11/07 00:43:03 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_COCOA_LOCATION_BAR_MIC_SEARCH_DECORATION_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MIC_SEARCH_DECORATION_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #include "chrome/browser/ui/cocoa/location_bar/image_decoration.h"
11
12 class CommandUpdater;
13
14 // Draws a microphone icon on the right side of the omnibox. This is used for
15 // voice search.
16 class MicSearchDecoration : public ImageDecoration {
17 public:
18 explicit MicSearchDecoration(CommandUpdater* command_updater);
19 ~MicSearchDecoration() override;
20
21 // Implement |LocationBarDecoration|.
22 bool AcceptsMousePress() override;
23 bool OnMousePressed(NSRect frame, NSPoint location) override;
24 NSString* GetToolTip() override;
25
26 private:
27 CommandUpdater* command_updater_; // Weak, owned by Browser.
28
29 DISALLOW_COPY_AND_ASSIGN(MicSearchDecoration);
30 };
31
32 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MIC_SEARCH_DECORATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698