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

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

Issue 2781613003: Added a class acting as a fake caret for accessibility. (Closed)
Patch Set: Added code that handles views. Created 3 years, 7 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 "base/memory/ptr_util.h" 7 #include "base/memory/ptr_util.h"
8 #include "third_party/skia/include/core/SkPath.h" 8 #include "third_party/skia/include/core/SkPath.h"
9 #include "third_party/skia/include/core/SkRegion.h" 9 #include "third_party/skia/include/core/SkRegion.h"
10 #include "ui/aura/client/aura_constants.h" 10 #include "ui/aura/client/aura_constants.h"
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after
593 } 593 }
594 594
595 void DesktopWindowTreeHostWin::OnWindowHidingAnimationCompleted() { 595 void DesktopWindowTreeHostWin::OnWindowHidingAnimationCompleted() {
596 if (pending_close_) 596 if (pending_close_)
597 message_handler_->Close(); 597 message_handler_->Close();
598 } 598 }
599 599
600 //////////////////////////////////////////////////////////////////////////////// 600 ////////////////////////////////////////////////////////////////////////////////
601 // DesktopWindowTreeHostWin, HWNDMessageHandlerDelegate implementation: 601 // DesktopWindowTreeHostWin, HWNDMessageHandlerDelegate implementation:
602 602
603 void DesktopWindowTreeHostWin::AddInputMethodObserver() const {
604 GetInputMethod()->AddObserver(message_handler_);
605 }
606
607 void DesktopWindowTreeHostWin::RemoveInputMethodObserver() const {
608 GetInputMethod()->RemoveObserver(message_handler_);
609 }
610
603 bool DesktopWindowTreeHostWin::HasNonClientView() const { 611 bool DesktopWindowTreeHostWin::HasNonClientView() const {
604 return has_non_client_view_; 612 return has_non_client_view_;
605 } 613 }
606 614
607 FrameMode DesktopWindowTreeHostWin::GetFrameMode() const { 615 FrameMode DesktopWindowTreeHostWin::GetFrameMode() const {
608 return GetWidget()->ShouldUseNativeFrame() ? FrameMode::SYSTEM_DRAWN 616 return GetWidget()->ShouldUseNativeFrame() ? FrameMode::SYSTEM_DRAWN
609 : FrameMode::CUSTOM_DRAWN; 617 : FrameMode::CUSTOM_DRAWN;
610 } 618 }
611 619
612 bool DesktopWindowTreeHostWin::HasFrame() const { 620 bool DesktopWindowTreeHostWin::HasFrame() const {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
996 1004
997 // static 1005 // static
998 DesktopWindowTreeHost* DesktopWindowTreeHost::Create( 1006 DesktopWindowTreeHost* DesktopWindowTreeHost::Create(
999 internal::NativeWidgetDelegate* native_widget_delegate, 1007 internal::NativeWidgetDelegate* native_widget_delegate,
1000 DesktopNativeWidgetAura* desktop_native_widget_aura) { 1008 DesktopNativeWidgetAura* desktop_native_widget_aura) {
1001 return new DesktopWindowTreeHostWin(native_widget_delegate, 1009 return new DesktopWindowTreeHostWin(native_widget_delegate,
1002 desktop_native_widget_aura); 1010 desktop_native_widget_aura);
1003 } 1011 }
1004 1012
1005 } // namespace views 1013 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698