Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |