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

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

Issue 326403002: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed. Created 6 years, 6 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
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('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) 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
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
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
OLDNEW
« no previous file with comments | « content/renderer/render_view_browsertest.cc ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698