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

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

Issue 14299009: In Windows desktop Chrome AURA the HandleVisibilityChanged function on the HWNDMessageHandlerDelega… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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_root_window_host_x11.h" 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_x11.h"
6 6
7 #include <X11/extensions/XInput2.h> 7 #include <X11/extensions/XInput2.h>
8 #include <X11/Xatom.h> 8 #include <X11/Xatom.h>
9 #include <X11/Xutil.h> 9 #include <X11/Xutil.h>
10 10
(...skipping 624 matching lines...) Expand 10 before | Expand all | Expand 10 after
635 635
636 void DesktopRootWindowHostX11::OnNativeWidgetFocus() { 636 void DesktopRootWindowHostX11::OnNativeWidgetFocus() {
637 native_widget_delegate_->AsWidget()->GetInputMethod()->OnFocus(); 637 native_widget_delegate_->AsWidget()->GetInputMethod()->OnFocus();
638 } 638 }
639 639
640 void DesktopRootWindowHostX11::OnNativeWidgetBlur() { 640 void DesktopRootWindowHostX11::OnNativeWidgetBlur() {
641 if (xwindow_) 641 if (xwindow_)
642 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur(); 642 native_widget_delegate_->AsWidget()->GetInputMethod()->OnBlur();
643 } 643 }
644 644
645 void DesktopRootWindowHostX11::AlwaysPaintActivated(bool value) {
646 }
647
645 //////////////////////////////////////////////////////////////////////////////// 648 ////////////////////////////////////////////////////////////////////////////////
646 // DesktopRootWindowHostX11, aura::RootWindowHost implementation: 649 // DesktopRootWindowHostX11, aura::RootWindowHost implementation:
647 650
648 void DesktopRootWindowHostX11::SetDelegate( 651 void DesktopRootWindowHostX11::SetDelegate(
649 aura::RootWindowHostDelegate* delegate) { 652 aura::RootWindowHostDelegate* delegate) {
650 root_window_host_delegate_ = delegate; 653 root_window_host_delegate_ = delegate;
651 } 654 }
652 655
653 aura::RootWindow* DesktopRootWindowHostX11::GetRootWindow() { 656 aura::RootWindow* DesktopRootWindowHostX11::GetRootWindow() {
654 return root_window_; 657 return root_window_;
(...skipping 486 matching lines...) Expand 10 before | Expand all | Expand 10 after
1141 DesktopRootWindowHost* DesktopRootWindowHost::Create( 1144 DesktopRootWindowHost* DesktopRootWindowHost::Create(
1142 internal::NativeWidgetDelegate* native_widget_delegate, 1145 internal::NativeWidgetDelegate* native_widget_delegate,
1143 DesktopNativeWidgetAura* desktop_native_widget_aura, 1146 DesktopNativeWidgetAura* desktop_native_widget_aura,
1144 const gfx::Rect& initial_bounds) { 1147 const gfx::Rect& initial_bounds) {
1145 return new DesktopRootWindowHostX11(native_widget_delegate, 1148 return new DesktopRootWindowHostX11(native_widget_delegate,
1146 desktop_native_widget_aura, 1149 desktop_native_widget_aura,
1147 initial_bounds); 1150 initial_bounds);
1148 } 1151 }
1149 1152
1150 } // namespace views 1153 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698