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

Unified 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: mac fix 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/mic_search_decoration.h
diff --git a/chrome/browser/ui/cocoa/location_bar/mic_search_decoration.h b/chrome/browser/ui/cocoa/location_bar/mic_search_decoration.h
deleted file mode 100644
index 91c05ccaaea23bef01af88faeb6e0a4b99bf9137..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/location_bar/mic_search_decoration.h
+++ /dev/null
@@ -1,32 +0,0 @@
-// Copyright 2013 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MIC_SEARCH_DECORATION_H_
-#define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MIC_SEARCH_DECORATION_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "chrome/browser/ui/cocoa/location_bar/image_decoration.h"
-
-class CommandUpdater;
-
-// Draws a microphone icon on the right side of the omnibox. This is used for
-// voice search.
-class MicSearchDecoration : public ImageDecoration {
- public:
- explicit MicSearchDecoration(CommandUpdater* command_updater);
- ~MicSearchDecoration() override;
-
- // Implement |LocationBarDecoration|.
- bool AcceptsMousePress() override;
- bool OnMousePressed(NSRect frame, NSPoint location) override;
- NSString* GetToolTip() override;
-
- private:
- CommandUpdater* command_updater_; // Weak, owned by Browser.
-
- DISALLOW_COPY_AND_ASSIGN(MicSearchDecoration);
-};
-
-#endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_MIC_SEARCH_DECORATION_H_

Powered by Google App Engine
This is Rietveld 408576698