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

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

Issue 6974007: Move setToolTipText related functions from RenderView to RenderWidget. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Check tool tip is empty in Mac code. Created 9 years, 7 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/renderer/render_view.h ('k') | content/renderer/render_widget.h » ('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 (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_view.h" 5 #include "content/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 1666 matching lines...) Expand 10 before | Expand all | Expand 10 after
1677 void RenderView::setMouseOverURL(const WebURL& url) { 1677 void RenderView::setMouseOverURL(const WebURL& url) {
1678 mouse_over_url_ = GURL(url); 1678 mouse_over_url_ = GURL(url);
1679 UpdateTargetURL(mouse_over_url_, focus_url_); 1679 UpdateTargetURL(mouse_over_url_, focus_url_);
1680 } 1680 }
1681 1681
1682 void RenderView::setKeyboardFocusURL(const WebURL& url) { 1682 void RenderView::setKeyboardFocusURL(const WebURL& url) {
1683 focus_url_ = GURL(url); 1683 focus_url_ = GURL(url);
1684 UpdateTargetURL(focus_url_, mouse_over_url_); 1684 UpdateTargetURL(focus_url_, mouse_over_url_);
1685 } 1685 }
1686 1686
1687 void RenderView::setToolTipText(const WebString& text, WebTextDirection hint) {
1688 Send(new ViewHostMsg_SetTooltipText(routing_id_, UTF16ToWideHack(text),
1689 hint));
1690 }
1691
1692 void RenderView::startDragging(const WebDragData& data, 1687 void RenderView::startDragging(const WebDragData& data,
1693 WebDragOperationsMask mask, 1688 WebDragOperationsMask mask,
1694 const WebImage& image, 1689 const WebImage& image,
1695 const WebPoint& imageOffset) { 1690 const WebPoint& imageOffset) {
1696 #if WEBKIT_USING_SKIA 1691 #if WEBKIT_USING_SKIA
1697 SkBitmap bitmap(image.getSkBitmap()); 1692 SkBitmap bitmap(image.getSkBitmap());
1698 #elif WEBKIT_USING_CG 1693 #elif WEBKIT_USING_CG
1699 SkBitmap bitmap = gfx::CGImageToSkBitmap(image.getCGImageRef()); 1694 SkBitmap bitmap = gfx::CGImageToSkBitmap(image.getCGImageRef());
1700 #endif 1695 #endif
1701 1696
(...skipping 2490 matching lines...) Expand 10 before | Expand all | Expand 10 after
4192 const webkit_glue::CustomContextMenuContext& custom_context) { 4187 const webkit_glue::CustomContextMenuContext& custom_context) {
4193 if (custom_context.is_pepper_menu) 4188 if (custom_context.is_pepper_menu)
4194 pepper_delegate_.OnContextMenuClosed(custom_context); 4189 pepper_delegate_.OnContextMenuClosed(custom_context);
4195 else 4190 else
4196 context_menu_node_.reset(); 4191 context_menu_node_.reset();
4197 } 4192 }
4198 4193
4199 void RenderView::OnNetworkStateChanged(bool online) { 4194 void RenderView::OnNetworkStateChanged(bool online) {
4200 WebNetworkStateNotifier::setOnLine(online); 4195 WebNetworkStateNotifier::setOnLine(online);
4201 } 4196 }
OLDNEW
« no previous file with comments | « content/renderer/render_view.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698