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

Side by Side Diff: chrome/browser/tab_contents/render_view_context_menu.cc

Issue 113403006: Update some uses of char16 to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/tab_contents/render_view_context_menu.h" 5 #include "chrome/browser/tab_contents/render_view_context_menu.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 } 364 }
365 } 365 }
366 } 366 }
367 367
368 void DevToolsInspectElementAt(RenderViewHost* rvh, int x, int y) { 368 void DevToolsInspectElementAt(RenderViewHost* rvh, int x, int y) {
369 DevToolsWindow::InspectElement(rvh, x, y); 369 DevToolsWindow::InspectElement(rvh, x, y);
370 } 370 }
371 371
372 // Helper function to escape "&" as "&&". 372 // Helper function to escape "&" as "&&".
373 void EscapeAmpersands(base::string16* text) { 373 void EscapeAmpersands(base::string16* text) {
374 const char16 ampersand[] = {'&', 0}; 374 const base::char16 ampersand[] = {'&', 0};
375 base::ReplaceChars(*text, ampersand, base::ASCIIToUTF16("&&"), text); 375 base::ReplaceChars(*text, ampersand, base::ASCIIToUTF16("&&"), text);
376 } 376 }
377 377
378 } // namespace 378 } // namespace
379 379
380 // static 380 // static
381 const size_t RenderViewContextMenu::kMaxSelectionTextLength = 50; 381 const size_t RenderViewContextMenu::kMaxSelectionTextLength = 50;
382 382
383 // static 383 // static
384 bool RenderViewContextMenu::IsDevToolsURL(const GURL& url) { 384 bool RenderViewContextMenu::IsDevToolsURL(const GURL& url) {
(...skipping 1728 matching lines...) Expand 10 before | Expand all | Expand 10 after
2113 source_web_contents_->GetRenderViewHost()-> 2113 source_web_contents_->GetRenderViewHost()->
2114 ExecuteMediaPlayerActionAtLocation(location, action); 2114 ExecuteMediaPlayerActionAtLocation(location, action);
2115 } 2115 }
2116 2116
2117 void RenderViewContextMenu::PluginActionAt( 2117 void RenderViewContextMenu::PluginActionAt(
2118 const gfx::Point& location, 2118 const gfx::Point& location,
2119 const WebPluginAction& action) { 2119 const WebPluginAction& action) {
2120 source_web_contents_->GetRenderViewHost()-> 2120 source_web_contents_->GetRenderViewHost()->
2121 ExecutePluginActionAtLocation(location, action); 2121 ExecutePluginActionAtLocation(location, action);
2122 } 2122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698