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

Side by Side Diff: content/renderer/render_widget.cc

Issue 7583038: content: change SetTooltipText to use string16 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 | « content/common/view_messages.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after
1023 if (pending_window_rect_count_) 1023 if (pending_window_rect_count_)
1024 return pending_window_rect_; 1024 return pending_window_rect_;
1025 1025
1026 gfx::Rect rect; 1026 gfx::Rect rect;
1027 Send(new ViewHostMsg_GetWindowRect(routing_id_, host_window_, &rect)); 1027 Send(new ViewHostMsg_GetWindowRect(routing_id_, host_window_, &rect));
1028 return rect; 1028 return rect;
1029 } 1029 }
1030 1030
1031 void RenderWidget::setToolTipText(const WebKit::WebString& text, 1031 void RenderWidget::setToolTipText(const WebKit::WebString& text,
1032 WebTextDirection hint) { 1032 WebTextDirection hint) {
1033 Send(new ViewHostMsg_SetTooltipText(routing_id_, UTF16ToWideHack(text), 1033 Send(new ViewHostMsg_SetTooltipText(routing_id_, text, hint));
1034 hint));
1035 } 1034 }
1036 1035
1037 void RenderWidget::setWindowRect(const WebRect& pos) { 1036 void RenderWidget::setWindowRect(const WebRect& pos) {
1038 if (did_show_) { 1037 if (did_show_) {
1039 Send(new ViewHostMsg_RequestMove(routing_id_, pos)); 1038 Send(new ViewHostMsg_RequestMove(routing_id_, pos));
1040 SetPendingWindowRect(pos); 1039 SetPendingWindowRect(pos);
1041 } else { 1040 } else {
1042 initial_pos_ = pos; 1041 initial_pos_ = pos;
1043 } 1042 }
1044 } 1043 }
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1392 1391
1393 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) { 1392 void RenderWidget::CleanupWindowInPluginMoves(gfx::PluginWindowHandle window) {
1394 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin(); 1393 for (WebPluginGeometryVector::iterator i = plugin_window_moves_.begin();
1395 i != plugin_window_moves_.end(); ++i) { 1394 i != plugin_window_moves_.end(); ++i) {
1396 if (i->window == window) { 1395 if (i->window == window) {
1397 plugin_window_moves_.erase(i); 1396 plugin_window_moves_.erase(i);
1398 break; 1397 break;
1399 } 1398 }
1400 } 1399 }
1401 } 1400 }
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698