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 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 case ui::SHOW_STATE_NORMAL: | 372 case ui::SHOW_STATE_NORMAL: |
373 Activate(); | 373 Activate(); |
374 break; | 374 break; |
375 case ui::SHOW_STATE_MAXIMIZED: | 375 case ui::SHOW_STATE_MAXIMIZED: |
376 Maximize(); | 376 Maximize(); |
377 break; | 377 break; |
378 case ui::SHOW_STATE_MINIMIZED: | 378 case ui::SHOW_STATE_MINIMIZED: |
379 Minimize(); | 379 Minimize(); |
380 break; | 380 break; |
381 case ui::SHOW_STATE_FULLSCREEN: | 381 case ui::SHOW_STATE_FULLSCREEN: |
382 SetFullscreen(TRUE); | 382 SetFullscreen(true); |
383 break; | 383 break; |
384 default: | 384 default: |
385 break; | 385 break; |
386 } | 386 } |
387 | 387 |
388 native_widget_delegate_->AsWidget()->SetInitialFocus(show_state); | 388 native_widget_delegate_->AsWidget()->SetInitialFocus(show_state); |
389 } | 389 } |
390 | 390 |
391 void DesktopWindowTreeHostX11::ShowMaximizedWithBounds( | 391 void DesktopWindowTreeHostX11::ShowMaximizedWithBounds( |
392 const gfx::Rect& restored_bounds) { | 392 const gfx::Rect& restored_bounds) { |
(...skipping 1604 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1997 if (linux_ui) { | 1997 if (linux_ui) { |
1998 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 1998 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
1999 if (native_theme) | 1999 if (native_theme) |
2000 return native_theme; | 2000 return native_theme; |
2001 } | 2001 } |
2002 | 2002 |
2003 return ui::NativeTheme::instance(); | 2003 return ui::NativeTheme::instance(); |
2004 } | 2004 } |
2005 | 2005 |
2006 } // namespace views | 2006 } // namespace views |
OLD | NEW |