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

Side by Side Diff: ash/launcher/launcher_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/launcher/launcher_view.h" 5 #include "ash/launcher/launcher_view.h"
6 6
7 #include "ash/launcher/app_launcher_button.h" 7 #include "ash/launcher/app_launcher_button.h"
8 #include "ash/launcher/launcher_model.h" 8 #include "ash/launcher/launcher_model.h"
9 #include "ash/launcher/tabbed_launcher_button.h" 9 #include "ash/launcher/tabbed_launcher_button.h"
10 #include "ash/launcher/view_model.h" 10 #include "ash/launcher/view_model.h"
(...skipping 11 matching lines...) Expand all
22 #include "ui/gfx/image/image.h" 22 #include "ui/gfx/image/image.h"
23 #include "ui/views/animation/bounds_animator.h" 23 #include "ui/views/animation/bounds_animator.h"
24 #include "ui/views/controls/button/image_button.h" 24 #include "ui/views/controls/button/image_button.h"
25 #include "ui/views/controls/menu/menu_model_adapter.h" 25 #include "ui/views/controls/menu/menu_model_adapter.h"
26 #include "ui/views/controls/menu/menu_runner.h" 26 #include "ui/views/controls/menu/menu_runner.h"
27 #include "ui/views/widget/widget.h" 27 #include "ui/views/widget/widget.h"
28 28
29 using ui::Animation; 29 using ui::Animation;
30 using views::View; 30 using views::View;
31 31
32 namespace aura_shell { 32 namespace ash {
33 namespace internal { 33 namespace internal {
34 34
35 // Padding between each view. 35 // Padding between each view.
36 static const int kHorizontalPadding = 12; 36 static const int kHorizontalPadding = 12;
37 37
38 // Amount content is inset on the left edge. 38 // Amount content is inset on the left edge.
39 static const int kLeadingInset = 8; 39 static const int kLeadingInset = 8;
40 40
41 // Height of the LauncherView. Hard coded to avoid resizing as items are 41 // Height of the LauncherView. Hard coded to avoid resizing as items are
42 // added/removed. 42 // added/removed.
(...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 ShowOverflowMenu(); 587 ShowOverflowMenu();
588 } else { 588 } else {
589 int view_index = view_model_->GetIndexOfView(sender); 589 int view_index = view_model_->GetIndexOfView(sender);
590 // May be -1 while in the process of animating closed. 590 // May be -1 while in the process of animating closed.
591 if (view_index != -1) 591 if (view_index != -1)
592 delegate->LauncherItemClicked(model_->items()[view_index]); 592 delegate->LauncherItemClicked(model_->items()[view_index]);
593 } 593 }
594 } 594 }
595 595
596 } // namespace internal 596 } // namespace internal
597 } // namespace aura_shell 597 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698