| 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_window_tree_host_x11.h" | 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" |
| 6 | 6 |
| 7 #include <X11/extensions/shape.h> | 7 #include <X11/extensions/shape.h> |
| 8 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
| 9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
| 10 #include <X11/Xregion.h> | 10 #include <X11/Xregion.h> |
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1141 if (flash_frame) | 1141 if (flash_frame) |
| 1142 hints->flags |= XUrgencyHint; | 1142 hints->flags |= XUrgencyHint; |
| 1143 else | 1143 else |
| 1144 hints->flags &= ~XUrgencyHint; | 1144 hints->flags &= ~XUrgencyHint; |
| 1145 | 1145 |
| 1146 XSetWMHints(xdisplay_, xwindow_, hints.get()); | 1146 XSetWMHints(xdisplay_, xwindow_, hints.get()); |
| 1147 | 1147 |
| 1148 urgency_hint_set_ = flash_frame; | 1148 urgency_hint_set_ = flash_frame; |
| 1149 } | 1149 } |
| 1150 | 1150 |
| 1151 void DesktopWindowTreeHostX11::OnRootViewLayout() { | |
| 1152 UpdateMinAndMaxSize(); | |
| 1153 } | |
| 1154 | |
| 1155 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { | 1151 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { |
| 1156 return false; | 1152 return false; |
| 1157 } | 1153 } |
| 1158 | 1154 |
| 1159 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { | 1155 bool DesktopWindowTreeHostX11::IsTranslucentWindowOpacitySupported() const { |
| 1160 return use_argb_visual_; | 1156 return use_argb_visual_; |
| 1161 } | 1157 } |
| 1162 | 1158 |
| 1163 void DesktopWindowTreeHostX11::SizeConstraintsChanged() { | 1159 void DesktopWindowTreeHostX11::SizeConstraintsChanged() { |
| 1164 UpdateMinAndMaxSize(); | 1160 UpdateMinAndMaxSize(); |
| (...skipping 1177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2342 if (linux_ui) { | 2338 if (linux_ui) { |
| 2343 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 2339 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
| 2344 if (native_theme) | 2340 if (native_theme) |
| 2345 return native_theme; | 2341 return native_theme; |
| 2346 } | 2342 } |
| 2347 | 2343 |
| 2348 return ui::NativeThemeAura::instance(); | 2344 return ui::NativeThemeAura::instance(); |
| 2349 } | 2345 } |
| 2350 | 2346 |
| 2351 } // namespace views | 2347 } // namespace views |
| OLD | NEW |