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

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

Issue 127453002: Enable the DesktopAuraTopLevelOwnedPopupResizeTest test for Linux AURA. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 11 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
« no previous file with comments | « no previous file | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 restored_bounds_ = restored_bounds; 348 restored_bounds_ = restored_bounds;
349 Maximize(); 349 Maximize();
350 Show(); 350 Show();
351 } 351 }
352 352
353 bool DesktopWindowTreeHostX11::IsVisible() const { 353 bool DesktopWindowTreeHostX11::IsVisible() const {
354 return window_mapped_; 354 return window_mapped_;
355 } 355 }
356 356
357 void DesktopWindowTreeHostX11::SetSize(const gfx::Size& size) { 357 void DesktopWindowTreeHostX11::SetSize(const gfx::Size& size) {
358 // TODO(erg): 358 bool size_changed = bounds_.size() != size;
359 NOTIMPLEMENTED(); 359 XResizeWindow(xdisplay_, xwindow_, size.width(), size.height());
360 if (size_changed)
361 NotifyHostResized(size);
360 } 362 }
361 363
362 void DesktopWindowTreeHostX11::StackAtTop() { 364 void DesktopWindowTreeHostX11::StackAtTop() {
363 XRaiseWindow(xdisplay_, xwindow_); 365 XRaiseWindow(xdisplay_, xwindow_);
364 } 366 }
365 367
366 void DesktopWindowTreeHostX11::CenterWindow(const gfx::Size& size) { 368 void DesktopWindowTreeHostX11::CenterWindow(const gfx::Size& size) {
367 gfx::Rect parent_bounds = GetWorkAreaBoundsInScreen(); 369 gfx::Rect parent_bounds = GetWorkAreaBoundsInScreen();
368 370
369 // If |window_|'s transient parent bounds are big enough to contain |size|, 371 // If |window_|'s transient parent bounds are big enough to contain |size|,
(...skipping 1173 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 if (linux_ui) { 1545 if (linux_ui) {
1544 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); 1546 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme();
1545 if (native_theme) 1547 if (native_theme)
1546 return native_theme; 1548 return native_theme;
1547 } 1549 }
1548 1550
1549 return ui::NativeTheme::instance(); 1551 return ui::NativeTheme::instance();
1550 } 1552 }
1551 1553
1552 } // namespace views 1554 } // namespace views
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/widget_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698