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

Side by Side Diff: ash/drag_drop/drag_image_view.cc

Issue 9033007: Rename the aura_shell namespace to ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 "ash/drag_drop/drag_image_view.h" 5 #include "ash/drag_drop/drag_image_view.h"
6 6
7 #include "ui/views/widget/widget.h" 7 #include "ui/views/widget/widget.h"
8 8
9 namespace aura_shell { 9 namespace ash {
10 namespace internal { 10 namespace internal {
11 11
12 namespace { 12 namespace {
13 using views::Widget; 13 using views::Widget;
14 14
15 Widget* CreateDragWidget() { 15 Widget* CreateDragWidget() {
16 Widget* drag_widget = new Widget; 16 Widget* drag_widget = new Widget;
17 Widget::InitParams params; 17 Widget::InitParams params;
18 params.type = Widget::InitParams::TYPE_TOOLTIP; 18 params.type = Widget::InitParams::TYPE_TOOLTIP;
19 params.keep_on_top = true; 19 params.keep_on_top = true;
(...skipping 30 matching lines...) Expand all
50 void DragImageView::SetWidgetVisible(bool visible) { 50 void DragImageView::SetWidgetVisible(bool visible) {
51 if (visible != widget_->IsVisible()) { 51 if (visible != widget_->IsVisible()) {
52 if (visible) 52 if (visible)
53 widget_->Show(); 53 widget_->Show();
54 else 54 else
55 widget_->Hide(); 55 widget_->Hide();
56 } 56 }
57 } 57 }
58 58
59 } // namespace internal 59 } // namespace internal
60 } // namespace aura_shell 60 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698