OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |