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

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

Issue 1249013005: Merge ViewHostMsg_TextInputTypeChanged and ViewHostMsg_TextInputStateChanged into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits. Created 5 years, 4 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
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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 new FrameHostMsg_PepperInstanceDeleted(render_frame->GetRoutingID())); 1243 new FrameHostMsg_PepperInstanceDeleted(render_frame->GetRoutingID()));
1244 } 1244 }
1245 1245
1246 void RenderViewImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance, 1246 void RenderViewImpl::PepperFocusChanged(PepperPluginInstanceImpl* instance,
1247 bool focused) { 1247 bool focused) {
1248 if (focused) 1248 if (focused)
1249 focused_pepper_plugin_ = instance; 1249 focused_pepper_plugin_ = instance;
1250 else if (focused_pepper_plugin_ == instance) 1250 else if (focused_pepper_plugin_ == instance)
1251 focused_pepper_plugin_ = NULL; 1251 focused_pepper_plugin_ = NULL;
1252 1252
1253 UpdateTextInputType(); 1253 UpdateTextInputState(NO_SHOW_IME, FROM_NON_IME);
1254 UpdateSelectionBounds(); 1254 UpdateSelectionBounds();
1255 } 1255 }
1256 1256
1257 void RenderViewImpl::RegisterPluginDelegate(WebPluginDelegateProxy* delegate) { 1257 void RenderViewImpl::RegisterPluginDelegate(WebPluginDelegateProxy* delegate) {
1258 plugin_delegates_.insert(delegate); 1258 plugin_delegates_.insert(delegate);
1259 // If the renderer is visible, set initial visibility and focus state. 1259 // If the renderer is visible, set initial visibility and focus state.
1260 if (!is_hidden()) { 1260 if (!is_hidden()) {
1261 #if defined(OS_MACOSX) 1261 #if defined(OS_MACOSX)
1262 delegate->SetContainerVisibility(true); 1262 delegate->SetContainerVisibility(true);
1263 if (webview() && webview()->isActive()) 1263 if (webview() && webview()->isActive())
(...skipping 2559 matching lines...) Expand 10 before | Expand all | Expand 10 after
3823 std::vector<gfx::Size> sizes; 3823 std::vector<gfx::Size> sizes;
3824 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes); 3824 ConvertToFaviconSizes(icon_urls[i].sizes(), &sizes);
3825 if (!url.isEmpty()) 3825 if (!url.isEmpty())
3826 urls.push_back( 3826 urls.push_back(
3827 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes)); 3827 FaviconURL(url, ToFaviconType(icon_urls[i].iconType()), sizes));
3828 } 3828 }
3829 SendUpdateFaviconURL(urls); 3829 SendUpdateFaviconURL(urls);
3830 } 3830 }
3831 3831
3832 } // namespace content 3832 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698