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

Side by Side Diff: ui/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
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_gtk.h » ('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) 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 "ui/views/widget/native_widget_aura.h" 5 #include "ui/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 372 matching lines...) Expand 10 before | Expand all | Expand 10 after
383 FROM_HERE, 383 FROM_HERE,
384 base::Bind(&NativeWidgetAura::CloseNow, 384 base::Bind(&NativeWidgetAura::CloseNow,
385 close_widget_factory_.GetWeakPtr())); 385 close_widget_factory_.GetWeakPtr()));
386 } 386 }
387 } 387 }
388 388
389 void NativeWidgetAura::CloseNow() { 389 void NativeWidgetAura::CloseNow() {
390 delete window_; 390 delete window_;
391 } 391 }
392 392
393 void NativeWidgetAura::EnableClose(bool enable) {
394 // http://crbug.com/102581
395 NOTIMPLEMENTED();
396 }
397
398 void NativeWidgetAura::Show() { 393 void NativeWidgetAura::Show() {
399 ShowWithWindowState(ui::SHOW_STATE_INACTIVE); 394 ShowWithWindowState(ui::SHOW_STATE_INACTIVE);
400 } 395 }
401 396
402 void NativeWidgetAura::Hide() { 397 void NativeWidgetAura::Hide() {
403 window_->Hide(); 398 window_->Hide();
404 } 399 }
405 400
406 void NativeWidgetAura::ShowMaximizedWithBounds( 401 void NativeWidgetAura::ShowMaximizedWithBounds(
407 const gfx::Rect& restored_bounds) { 402 const gfx::Rect& restored_bounds) {
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after
791 NOTIMPLEMENTED(); 786 NOTIMPLEMENTED();
792 } 787 }
793 788
794 // static 789 // static
795 bool NativeWidgetPrivate::IsMouseButtonDown() { 790 bool NativeWidgetPrivate::IsMouseButtonDown() {
796 return aura::Desktop::GetInstance()->IsMouseButtonDown(); 791 return aura::Desktop::GetInstance()->IsMouseButtonDown();
797 } 792 }
798 793
799 } // namespace internal 794 } // namespace internal
800 } // namespace views 795 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.h ('k') | ui/views/widget/native_widget_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698