| 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 "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 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 612 void DesktopRootWindowHostX11::SetVisibilityChangedAnimationsEnabled( | 612 void DesktopRootWindowHostX11::SetVisibilityChangedAnimationsEnabled( |
| 613 bool value) { | 613 bool value) { |
| 614 // Much like the previous NativeWidgetGtk, we don't have anything to do here. | 614 // Much like the previous NativeWidgetGtk, we don't have anything to do here. |
| 615 } | 615 } |
| 616 | 616 |
| 617 bool DesktopRootWindowHostX11::ShouldUseNativeFrame() { | 617 bool DesktopRootWindowHostX11::ShouldUseNativeFrame() { |
| 618 return false; | 618 return false; |
| 619 } | 619 } |
| 620 | 620 |
| 621 void DesktopRootWindowHostX11::FrameTypeChanged() { | 621 void DesktopRootWindowHostX11::FrameTypeChanged() { |
| 622 // Replace the frame and layout the contents. Even though we don't have a |
| 623 // swapable glass frame like on Windows, we still replace the frame because |
| 624 // the button assets don't update otherwise. |
| 625 native_widget_delegate_->AsWidget()->non_client_view()->UpdateFrame(true); |
| 622 } | 626 } |
| 623 | 627 |
| 624 NonClientFrameView* DesktopRootWindowHostX11::CreateNonClientFrameView() { | 628 NonClientFrameView* DesktopRootWindowHostX11::CreateNonClientFrameView() { |
| 625 return NULL; | 629 return NULL; |
| 626 } | 630 } |
| 627 | 631 |
| 628 void DesktopRootWindowHostX11::SetFullscreen(bool fullscreen) { | 632 void DesktopRootWindowHostX11::SetFullscreen(bool fullscreen) { |
| 629 SetWMSpecState(fullscreen, | 633 SetWMSpecState(fullscreen, |
| 630 atom_cache_.GetAtom("_NET_WM_STATE_FULLSCREEN"), | 634 atom_cache_.GetAtom("_NET_WM_STATE_FULLSCREEN"), |
| 631 None); | 635 None); |
| (...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 1197 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
| 1194 internal::NativeWidgetDelegate* native_widget_delegate, | 1198 internal::NativeWidgetDelegate* native_widget_delegate, |
| 1195 DesktopNativeWidgetAura* desktop_native_widget_aura, | 1199 DesktopNativeWidgetAura* desktop_native_widget_aura, |
| 1196 const gfx::Rect& initial_bounds) { | 1200 const gfx::Rect& initial_bounds) { |
| 1197 return new DesktopRootWindowHostX11(native_widget_delegate, | 1201 return new DesktopRootWindowHostX11(native_widget_delegate, |
| 1198 desktop_native_widget_aura, | 1202 desktop_native_widget_aura, |
| 1199 initial_bounds); | 1203 initial_bounds); |
| 1200 } | 1204 } |
| 1201 | 1205 |
| 1202 } // namespace views | 1206 } // namespace views |
| OLD | NEW |