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

Side by Side Diff: ash/launcher/app_launcher_button.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/app_launcher_button.h" 5 #include "ash/launcher/app_launcher_button.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "ash/launcher/launcher_button_host.h" 9 #include "ash/launcher/launcher_button_host.h"
10 #include "ui/gfx/canvas_skia.h" 10 #include "ui/gfx/canvas_skia.h"
11 11
12 namespace aura_shell { 12 namespace ash {
13 13
14 namespace internal { 14 namespace internal {
15 15
16 const int kImageSize = 32; 16 const int kImageSize = 32;
17 17
18 AppLauncherButton::AppLauncherButton(views::ButtonListener* listener, 18 AppLauncherButton::AppLauncherButton(views::ButtonListener* listener,
19 LauncherButtonHost* host) 19 LauncherButtonHost* host)
20 : views::ImageButton(listener), 20 : views::ImageButton(listener),
21 host_(host) { 21 host_(host) {
22 SetPreferredSize(gfx::Size(kImageSize, kImageSize)); 22 SetPreferredSize(gfx::Size(kImageSize, kImageSize));
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ImageButton::OnMouseCaptureLost(); 70 ImageButton::OnMouseCaptureLost();
71 } 71 }
72 72
73 bool AppLauncherButton::OnMouseDragged(const views::MouseEvent& event) { 73 bool AppLauncherButton::OnMouseDragged(const views::MouseEvent& event) {
74 ImageButton::OnMouseDragged(event); 74 ImageButton::OnMouseDragged(event);
75 host_->MouseDraggedOnButton(this, event); 75 host_->MouseDraggedOnButton(this, event);
76 return true; 76 return true;
77 } 77 }
78 78
79 } // namespace internal 79 } // namespace internal
80 } // namespace aura_shell 80 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698