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

Side by Side Diff: chrome/renderer/searchbox/searchbox.cc

Issue 16281006: Use a direct include of strings headers in chrome/renderer/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/renderer/searchbox/searchbox.h" 5 #include "chrome/renderer/searchbox/searchbox.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/string_util.h" 10 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "chrome/common/chrome_switches.h" 12 #include "chrome/common/chrome_switches.h"
13 #include "chrome/common/omnibox_focus_state.h" 13 #include "chrome/common/omnibox_focus_state.h"
14 #include "chrome/common/render_messages.h" 14 #include "chrome/common/render_messages.h"
15 #include "chrome/common/url_constants.h" 15 #include "chrome/common/url_constants.h"
16 #include "chrome/renderer/searchbox/searchbox_extension.h" 16 #include "chrome/renderer/searchbox/searchbox_extension.h"
17 #include "content/public/renderer/render_view.h" 17 #include "content/public/renderer/render_view.h"
18 #include "googleurl/src/gurl.h" 18 #include "googleurl/src/gurl.h"
19 #include "grit/renderer_resources.h" 19 #include "grit/renderer_resources.h"
20 #include "net/base/escape.h" 20 #include "net/base/escape.h"
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 InstantMostVisitedItem item; 497 InstantMostVisitedItem item;
498 return GetMostVisitedItemWithID(item_id, &item) ? item.url : GURL(); 498 return GetMostVisitedItemWithID(item_id, &item) ? item.url : GURL();
499 } 499 }
500 500
501 void SearchBox::OnToggleVoiceSearch() { 501 void SearchBox::OnToggleVoiceSearch() {
502 if (render_view()->GetWebView() && render_view()->GetWebView()->mainFrame()) { 502 if (render_view()->GetWebView() && render_view()->GetWebView()->mainFrame()) {
503 extensions_v8::SearchBoxExtension::DispatchToggleVoiceSearch( 503 extensions_v8::SearchBoxExtension::DispatchToggleVoiceSearch(
504 render_view()->GetWebView()->mainFrame()); 504 render_view()->GetWebView()->mainFrame());
505 } 505 }
506 } 506 }
OLDNEW
« no previous file with comments | « chrome/renderer/searchbox/searchbox.h ('k') | chrome/renderer/searchbox/searchbox_extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698