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

Unified Diff: chrome/browser/ui/cocoa/location_bar/mic_search_decoration.mm

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.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/mic_search_decoration.mm b/chrome/browser/ui/cocoa/location_bar/mic_search_decoration.mm
deleted file mode 100644
index f8b01849e0d721663ee3dcf87ae7755181146dfd..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/location_bar/mic_search_decoration.mm
+++ /dev/null
@@ -1,33 +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.
-
-#import "chrome/browser/ui/cocoa/location_bar/mic_search_decoration.h"
-
-#include "chrome/app/chrome_command_ids.h"
-#include "chrome/browser/command_updater.h"
-#import "chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.h"
-#include "chrome/grit/generated_resources.h"
-#include "grit/theme_resources.h"
-#include "ui/base/l10n/l10n_util_mac.h"
-
-MicSearchDecoration::MicSearchDecoration(CommandUpdater* command_updater)
- : command_updater_(command_updater) {
- SetImage(OmniboxViewMac::ImageForResource(IDR_OMNIBOX_MIC_SEARCH));
-}
-
-MicSearchDecoration::~MicSearchDecoration() {
-}
-
-bool MicSearchDecoration::AcceptsMousePress() {
- return true;
-}
-
-bool MicSearchDecoration::OnMousePressed(NSRect frame, NSPoint location) {
- command_updater_->ExecuteCommand(IDC_TOGGLE_SPEECH_INPUT);
- return true;
-}
-
-NSString* MicSearchDecoration::GetToolTip() {
- return l10n_util::GetNSStringWithFixup(IDS_TOOLTIP_MIC_SEARCH);
-}
« no previous file with comments | « chrome/browser/ui/cocoa/location_bar/mic_search_decoration.h ('k') | chrome/browser/ui/cocoa/view_id_util_browsertest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698