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/browser/renderer_host/render_widget_host_view_win.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_win.h" |
6 | 6 |
7 #include <InputScope.h> | 7 #include <InputScope.h> |
8 #include <wtsapi32.h> | 8 #include <wtsapi32.h> |
9 #pragma comment(lib, "wtsapi32.lib") | 9 #pragma comment(lib, "wtsapi32.lib") |
10 | 10 |
(...skipping 673 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
684 } | 684 } |
685 } | 685 } |
686 | 686 |
687 void RenderWidgetHostViewWin::SetIsLoading(bool is_loading) { | 687 void RenderWidgetHostViewWin::SetIsLoading(bool is_loading) { |
688 is_loading_ = is_loading; | 688 is_loading_ = is_loading; |
689 UpdateCursorIfOverSelf(); | 689 UpdateCursorIfOverSelf(); |
690 } | 690 } |
691 | 691 |
692 void RenderWidgetHostViewWin::TextInputTypeChanged( | 692 void RenderWidgetHostViewWin::TextInputTypeChanged( |
693 ui::TextInputType type, | 693 ui::TextInputType type, |
694 bool can_compose_inline, | 694 ui::TextInputMode input_mode, |
695 ui::TextInputMode input_mode) { | 695 bool can_compose_inline) { |
696 if (text_input_type_ != type || | 696 if (text_input_type_ != type || |
697 text_input_mode_ != input_mode || | 697 text_input_mode_ != input_mode || |
698 can_compose_inline_ != can_compose_inline) { | 698 can_compose_inline_ != can_compose_inline) { |
699 const bool text_input_type_changed = (text_input_type_ != type) || | 699 const bool text_input_type_changed = (text_input_type_ != type) || |
700 (text_input_mode_ != input_mode); | 700 (text_input_mode_ != input_mode); |
701 text_input_type_ = type; | 701 text_input_type_ = type; |
702 text_input_mode_ = input_mode; | 702 text_input_mode_ = input_mode; |
703 can_compose_inline_ = can_compose_inline; | 703 can_compose_inline_ = can_compose_inline; |
704 UpdateIMEState(); | 704 UpdateIMEState(); |
705 if (text_input_type_changed) | 705 if (text_input_type_changed) |
(...skipping 2493 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3199 return new RenderWidgetHostViewWin(widget); | 3199 return new RenderWidgetHostViewWin(widget); |
3200 } | 3200 } |
3201 | 3201 |
3202 // static | 3202 // static |
3203 void RenderWidgetHostViewPort::GetDefaultScreenInfo( | 3203 void RenderWidgetHostViewPort::GetDefaultScreenInfo( |
3204 WebKit::WebScreenInfo* results) { | 3204 WebKit::WebScreenInfo* results) { |
3205 GetScreenInfoForWindow(0, results); | 3205 GetScreenInfoForWindow(0, results); |
3206 } | 3206 } |
3207 | 3207 |
3208 } // namespace content | 3208 } // namespace content |
OLD | NEW |