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

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: Add Mac change. 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
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 2477 matching lines...) Expand 10 before | Expand all | Expand 10 after
4179 const webkit_glue::CustomContextMenuContext& custom_context) { 4174 const webkit_glue::CustomContextMenuContext& custom_context) {
4180 if (custom_context.is_pepper_menu) 4175 if (custom_context.is_pepper_menu)
4181 pepper_delegate_.OnContextMenuClosed(custom_context); 4176 pepper_delegate_.OnContextMenuClosed(custom_context);
4182 else 4177 else
4183 context_menu_node_.reset(); 4178 context_menu_node_.reset();
4184 } 4179 }
4185 4180
4186 void RenderView::OnNetworkStateChanged(bool online) { 4181 void RenderView::OnNetworkStateChanged(bool online) {
4187 WebNetworkStateNotifier::setOnLine(online); 4182 WebNetworkStateNotifier::setOnLine(online);
4188 } 4183 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698