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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc

Issue 1566083002: Makes sure the keyboard typing isn't blocked when InputMethod::OnFocus() is not correctly called. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remote_input_method_win.cc is gone again. Created 4 years, 11 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 "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h" 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_win.h"
6 6
7 #include "third_party/skia/include/core/SkPath.h" 7 #include "third_party/skia/include/core/SkPath.h"
8 #include "third_party/skia/include/core/SkRegion.h" 8 #include "third_party/skia/include/core/SkRegion.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/cursor_client.h" 10 #include "ui/aura/client/cursor_client.h"
(...skipping 898 matching lines...) Expand 10 before | Expand all | Expand 10 after
909 void DesktopWindowTreeHostWin::HandleWindowSizeChanged() { 909 void DesktopWindowTreeHostWin::HandleWindowSizeChanged() {
910 // A resize may not have occurred if the window size happened not to have 910 // A resize may not have occurred if the window size happened not to have
911 // changed (can occur on Windows 10 when snapping a window to the side of 911 // changed (can occur on Windows 10 when snapping a window to the side of
912 // the screen). In that case do a resize to the current size to reenable 912 // the screen). In that case do a resize to the current size to reenable
913 // swaps. 913 // swaps.
914 if (compositor()) 914 if (compositor())
915 compositor()->SetScaleAndSize(compositor()->device_scale_factor(), 915 compositor()->SetScaleAndSize(compositor()->device_scale_factor(),
916 compositor()->size()); 916 compositor()->size());
917 } 917 }
918 918
919 void DesktopWindowTreeHostWin::AddStringLog(const char* log_string) {
920 GetInputMethod()->GetLogCollector()->AddString(log_string);
921 }
922
923 void DesktopWindowTreeHostWin::AddBooleanLog(bool bool_val) {
924 GetInputMethod()->GetLogCollector()->AddBoolean(bool_val);
925 }
926
919 //////////////////////////////////////////////////////////////////////////////// 927 ////////////////////////////////////////////////////////////////////////////////
920 // DesktopWindowTreeHostWin, private: 928 // DesktopWindowTreeHostWin, private:
921 929
922 Widget* DesktopWindowTreeHostWin::GetWidget() { 930 Widget* DesktopWindowTreeHostWin::GetWidget() {
923 return native_widget_delegate_->AsWidget(); 931 return native_widget_delegate_->AsWidget();
924 } 932 }
925 933
926 const Widget* DesktopWindowTreeHostWin::GetWidget() const { 934 const Widget* DesktopWindowTreeHostWin::GetWidget() const {
927 return native_widget_delegate_->AsWidget(); 935 return native_widget_delegate_->AsWidget();
928 } 936 }
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 968
961 // static 969 // static
962 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 970 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
963 internal::NativeWidgetDelegate* native_widget_delegate, 971 internal::NativeWidgetDelegate* native_widget_delegate,
964 DesktopNativeWidgetAura* desktop_native_widget_aura) { 972 DesktopNativeWidgetAura* desktop_native_widget_aura) {
965 return new DesktopWindowTreeHostWin(native_widget_delegate, 973 return new DesktopWindowTreeHostWin(native_widget_delegate,
966 desktop_native_widget_aura); 974 desktop_native_widget_aura);
967 } 975 }
968 976
969 } // namespace views 977 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_win.h ('k') | ui/views/win/hwnd_message_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698