OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cmath> | 8 #include <cmath> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 2852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2863 } | 2863 } |
2864 } | 2864 } |
2865 | 2865 |
2866 void RenderViewImpl::OnMediaPlayerActionAt(const gfx::Point& location, | 2866 void RenderViewImpl::OnMediaPlayerActionAt(const gfx::Point& location, |
2867 const WebMediaPlayerAction& action) { | 2867 const WebMediaPlayerAction& action) { |
2868 if (webview()) | 2868 if (webview()) |
2869 webview()->performMediaPlayerAction(action, location); | 2869 webview()->performMediaPlayerAction(action, location); |
2870 } | 2870 } |
2871 | 2871 |
2872 void RenderViewImpl::OnOrientationChange() { | 2872 void RenderViewImpl::OnOrientationChange() { |
2873 // TODO(mlamouri): consumers of that event should be using DisplayObserver. | 2873 // TODO(mlamouri): consumers of that event should be using DisplayObserver. |
jamesr
2014/06/19 17:53:58
you've split the TODO and the line it refers to. p
| |
2874 has_scrolled_focused_editable_node_into_rect_ = false; | |
jamesr
2014/06/19 17:53:58
it's not at all clear why this line is here. could
| |
2874 FOR_EACH_OBSERVER(RenderViewObserver, | 2875 FOR_EACH_OBSERVER(RenderViewObserver, |
2875 observers_, | 2876 observers_, |
2876 OrientationChangeEvent()); | 2877 OrientationChangeEvent()); |
2877 | 2878 |
2878 webview()->mainFrame()->sendOrientationChangeEvent(); | 2879 webview()->mainFrame()->sendOrientationChangeEvent(); |
2879 } | 2880 } |
2880 | 2881 |
2881 void RenderViewImpl::OnPluginActionAt(const gfx::Point& location, | 2882 void RenderViewImpl::OnPluginActionAt(const gfx::Point& location, |
2882 const WebPluginAction& action) { | 2883 const WebPluginAction& action) { |
2883 if (webview()) | 2884 if (webview()) |
(...skipping 1115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3999 std::vector<gfx::Size> sizes; | 4000 std::vector<gfx::Size> sizes; |
4000 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4001 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
4001 if (!url.isEmpty()) | 4002 if (!url.isEmpty()) |
4002 urls.push_back( | 4003 urls.push_back( |
4003 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4004 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
4004 } | 4005 } |
4005 SendUpdateFaviconURL(urls); | 4006 SendUpdateFaviconURL(urls); |
4006 } | 4007 } |
4007 | 4008 |
4008 } // namespace content | 4009 } // namespace content |
OLD | NEW |