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

Side by Side Diff: views/widget/native_widget_aura.cc

Issue 8585014: Disable StartMinimized test for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « chrome/browser/ui/browser_browsertest.cc ('k') | no next file » | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/widget/native_widget_aura.h" 5 #include "views/widget/native_widget_aura.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "ui/aura/client/aura_constants.h" 8 #include "ui/aura/client/aura_constants.h"
9 #include "ui/aura/desktop.h" 9 #include "ui/aura/desktop.h"
10 #include "ui/aura/desktop_observer.h" 10 #include "ui/aura/desktop_observer.h"
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
420 420
421 void NativeWidgetAura::SetAlwaysOnTop(bool on_top) { 421 void NativeWidgetAura::SetAlwaysOnTop(bool on_top) {
422 window_->SetIntProperty(aura::kAlwaysOnTopKey, on_top); 422 window_->SetIntProperty(aura::kAlwaysOnTopKey, on_top);
423 } 423 }
424 424
425 void NativeWidgetAura::Maximize() { 425 void NativeWidgetAura::Maximize() {
426 window_->SetIntProperty(aura::kShowStateKey, ui::SHOW_STATE_MAXIMIZED); 426 window_->SetIntProperty(aura::kShowStateKey, ui::SHOW_STATE_MAXIMIZED);
427 } 427 }
428 428
429 void NativeWidgetAura::Minimize() { 429 void NativeWidgetAura::Minimize() {
430 // No minimized window for aura. crbug.com/104571.
430 NOTREACHED(); 431 NOTREACHED();
431 } 432 }
432 433
433 bool NativeWidgetAura::IsMaximized() const { 434 bool NativeWidgetAura::IsMaximized() const {
434 return window_->GetIntProperty(aura::kShowStateKey) == 435 return window_->GetIntProperty(aura::kShowStateKey) ==
435 ui::SHOW_STATE_MAXIMIZED; 436 ui::SHOW_STATE_MAXIMIZED;
436 } 437 }
437 438
438 bool NativeWidgetAura::IsMinimized() const { 439 bool NativeWidgetAura::IsMinimized() const {
439 return window_->GetIntProperty(aura::kShowStateKey) == 440 return window_->GetIntProperty(aura::kShowStateKey) ==
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 NOTIMPLEMENTED(); 730 NOTIMPLEMENTED();
730 } 731 }
731 732
732 // static 733 // static
733 bool NativeWidgetPrivate::IsMouseButtonDown() { 734 bool NativeWidgetPrivate::IsMouseButtonDown() {
734 return aura::Desktop::GetInstance()->IsMouseButtonDown(); 735 return aura::Desktop::GetInstance()->IsMouseButtonDown();
735 } 736 }
736 737
737 } // namespace internal 738 } // namespace internal
738 } // namespace views 739 } // namespace views
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698