| 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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 982 PepperFocusChanged(instance, false); | 982 PepperFocusChanged(instance, false); |
| 983 } | 983 } |
| 984 | 984 |
| 985 void RenderViewImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance, | 985 void RenderViewImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance, |
| 986 bool focused) { | 986 bool focused) { |
| 987 if (focused) | 987 if (focused) |
| 988 focused_pepper_plugin_ = instance; | 988 focused_pepper_plugin_ = instance; |
| 989 else if (focused_pepper_plugin_ == instance) | 989 else if (focused_pepper_plugin_ == instance) |
| 990 focused_pepper_plugin_ = NULL; | 990 focused_pepper_plugin_ = NULL; |
| 991 | 991 |
| 992 UpdateTextInputType(); | 992 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME); |
| 993 UpdateSelectionBounds(); | 993 UpdateSelectionBounds(); |
| 994 } | 994 } |
| 995 | 995 |
| 996 void RenderViewImpl::RegisterPluginDelegate(WebPluginDelegateProxy* delegate) { | 996 void RenderViewImpl::RegisterPluginDelegate(WebPluginDelegateProxy* delegate) { |
| 997 plugin_delegates_.insert(delegate); | 997 plugin_delegates_.insert(delegate); |
| 998 // If the renderer is visible, set initial visibility and focus state. | 998 // If the renderer is visible, set initial visibility and focus state. |
| 999 if (!is_hidden()) { | 999 if (!is_hidden()) { |
| 1000 #if defined(OS_MACOSX) | 1000 #if defined(OS_MACOSX) |
| 1001 delegate->SetContainerVisibility(true); | 1001 delegate->SetContainerVisibility(true); |
| 1002 if (webview() && webview()->isActive()) | 1002 if (webview() && webview()->isActive()) |
| (...skipping 3035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4038 std::vector<gfx::Size> sizes; | 4038 std::vector<gfx::Size> sizes; |
| 4039 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); | 4039 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); |
| 4040 if (!url.isEmpty()) | 4040 if (!url.isEmpty()) |
| 4041 urls.push_back( | 4041 urls.push_back( |
| 4042 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); | 4042 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); |
| 4043 } | 4043 } |
| 4044 SendUpdateFaviconURL(urls); | 4044 SendUpdateFaviconURL(urls); |
| 4045 } | 4045 } |
| 4046 | 4046 |
| 4047 } // namespace content | 4047 } // namespace content |
| OLD | NEW |