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

Side by Side Diff: ash/system/tray/actionable_view.h

Issue 224113005: Eliminate ash::internal namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 months 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 | « ash/system/status_area_widget_delegate.cc ('k') | ash/system/tray/actionable_view.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ 5 #ifndef ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_
6 #define ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ 6 #define ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/views/view.h" 11 #include "ui/views/view.h"
12 12
13 namespace ash { 13 namespace ash {
14 namespace internal {
15 14
16 // A focusable view that performs an action when user clicks on it, or presses 15 // A focusable view that performs an action when user clicks on it, or presses
17 // enter or space when focused. Note that the action is triggered on mouse-up, 16 // enter or space when focused. Note that the action is triggered on mouse-up,
18 // instead of on mouse-down. So if user presses the mouse on the view, then 17 // instead of on mouse-down. So if user presses the mouse on the view, then
19 // moves the mouse out of the view and then releases, then the action will not 18 // moves the mouse out of the view and then releases, then the action will not
20 // be performed. 19 // be performed.
21 // Exported for SystemTray. 20 // Exported for SystemTray.
22 class ASH_EXPORT ActionableView : public views::View { 21 class ASH_EXPORT ActionableView : public views::View {
23 public: 22 public:
24 static const char kViewClassName[]; 23 static const char kViewClassName[];
(...skipping 30 matching lines...) Expand all
55 // Overridden from ui::EventHandler. 54 // Overridden from ui::EventHandler.
56 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; 55 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
57 56
58 private: 57 private:
59 base::string16 accessible_name_; 58 base::string16 accessible_name_;
60 bool has_capture_; 59 bool has_capture_;
61 60
62 DISALLOW_COPY_AND_ASSIGN(ActionableView); 61 DISALLOW_COPY_AND_ASSIGN(ActionableView);
63 }; 62 };
64 63
65 } // namespace internal
66 } // namespace ash 64 } // namespace ash
67 65
68 #endif // ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_ 66 #endif // ASH_SYSTEM_TRAY_ACTIONABLE_VIEW_H_
OLDNEW
« no previous file with comments | « ash/system/status_area_widget_delegate.cc ('k') | ash/system/tray/actionable_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698