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 <algorithm> | 7 #include <algorithm> |
8 #include <peninputpanel_i.c> | 8 #include <peninputpanel_i.c> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
656 } | 656 } |
657 | 657 |
658 void RenderWidgetHostViewWin::Blur() { | 658 void RenderWidgetHostViewWin::Blur() { |
659 NOTREACHED(); | 659 NOTREACHED(); |
660 } | 660 } |
661 | 661 |
662 bool RenderWidgetHostViewWin::HasFocus() const { | 662 bool RenderWidgetHostViewWin::HasFocus() const { |
663 return ::GetFocus() == m_hWnd; | 663 return ::GetFocus() == m_hWnd; |
664 } | 664 } |
665 | 665 |
666 bool RenderWidgetHostViewWin::HasSurface() const { | |
667 return !!accelerated_surface_.get(); | |
mazda
2012/05/03 20:19:34
Same here.
return !!render_widget_host_->GetBacki
| |
668 } | |
669 | |
666 void RenderWidgetHostViewWin::Show() { | 670 void RenderWidgetHostViewWin::Show() { |
667 if (!is_fullscreen_) { | 671 if (!is_fullscreen_) { |
668 DCHECK(parent_hwnd_); | 672 DCHECK(parent_hwnd_); |
669 DCHECK(parent_hwnd_ != ui::GetWindowToParentTo(true)); | 673 DCHECK(parent_hwnd_ != ui::GetWindowToParentTo(true)); |
670 SetParent(parent_hwnd_); | 674 SetParent(parent_hwnd_); |
671 } | 675 } |
672 ShowWindow(SW_SHOW); | 676 ShowWindow(SW_SHOW); |
673 | 677 |
674 DidBecomeSelected(); | 678 DidBecomeSelected(); |
675 } | 679 } |
(...skipping 2021 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2697 void RenderWidgetHostViewWin::ResetPointerDownContext() { | 2701 void RenderWidgetHostViewWin::ResetPointerDownContext() { |
2698 // If the default focus on the page is on an edit field and we did not | 2702 // If the default focus on the page is on an edit field and we did not |
2699 // receive a focus change in the context of a pointer down message, it means | 2703 // receive a focus change in the context of a pointer down message, it means |
2700 // that the pointer down message occurred on the edit field and we should | 2704 // that the pointer down message occurred on the edit field and we should |
2701 // display the on screen keyboard | 2705 // display the on screen keyboard |
2702 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) | 2706 if (!received_focus_change_after_pointer_down_ && virtual_keyboard_) |
2703 DisplayOnScreenKeyboardIfNeeded(); | 2707 DisplayOnScreenKeyboardIfNeeded(); |
2704 received_focus_change_after_pointer_down_ = false; | 2708 received_focus_change_after_pointer_down_ = false; |
2705 pointer_down_context_ = false; | 2709 pointer_down_context_ = false; |
2706 } | 2710 } |
OLD | NEW |