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

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

Issue 8618001: Get rid of the EnableClose() infrastructure in Widget. (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
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 "base/string_util.h" 8 #include "base/string_util.h"
9 #include "ui/aura/client/aura_constants.h" 9 #include "ui/aura/client/aura_constants.h"
10 #include "ui/aura/client/drag_drop_client.h" 10 #include "ui/aura/client/drag_drop_client.h"
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after
377 FROM_HERE, 377 FROM_HERE,
378 base::Bind(&NativeWidgetAura::CloseNow, 378 base::Bind(&NativeWidgetAura::CloseNow,
379 close_widget_factory_.GetWeakPtr())); 379 close_widget_factory_.GetWeakPtr()));
380 } 380 }
381 } 381 }
382 382
383 void NativeWidgetAura::CloseNow() { 383 void NativeWidgetAura::CloseNow() {
384 delete window_; 384 delete window_;
385 } 385 }
386 386
387 void NativeWidgetAura::EnableClose(bool enable) {
388 // http://crbug.com/102581
389 NOTIMPLEMENTED();
390 }
391
392 void NativeWidgetAura::Show() { 387 void NativeWidgetAura::Show() {
393 ShowWithWindowState(ui::SHOW_STATE_INACTIVE); 388 ShowWithWindowState(ui::SHOW_STATE_INACTIVE);
394 } 389 }
395 390
396 void NativeWidgetAura::Hide() { 391 void NativeWidgetAura::Hide() {
397 window_->Hide(); 392 window_->Hide();
398 } 393 }
399 394
400 void NativeWidgetAura::ShowMaximizedWithBounds( 395 void NativeWidgetAura::ShowMaximizedWithBounds(
401 const gfx::Rect& restored_bounds) { 396 const gfx::Rect& restored_bounds) {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
785 NOTIMPLEMENTED(); 780 NOTIMPLEMENTED();
786 } 781 }
787 782
788 // static 783 // static
789 bool NativeWidgetPrivate::IsMouseButtonDown() { 784 bool NativeWidgetPrivate::IsMouseButtonDown() {
790 return aura::Desktop::GetInstance()->IsMouseButtonDown(); 785 return aura::Desktop::GetInstance()->IsMouseButtonDown();
791 } 786 }
792 787
793 } // namespace internal 788 } // namespace internal
794 } // namespace views 789 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698