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

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

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/tray/actionable_view.h ('k') | ash/system/tray/fixed_sized_image_view.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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/system/tray/actionable_view.h" 5 #include "ash/system/tray/actionable_view.h"
6 6
7 #include "ash/ash_constants.h" 7 #include "ash/ash_constants.h"
8 #include "ui/accessibility/ax_view_state.h" 8 #include "ui/accessibility/ax_view_state.h"
9 #include "ui/gfx/canvas.h" 9 #include "ui/gfx/canvas.h"
10 10
11 namespace ash { 11 namespace ash {
12 namespace internal {
13 12
14 // static 13 // static
15 const char ActionableView::kViewClassName[] = "tray/ActionableView"; 14 const char ActionableView::kViewClassName[] = "tray/ActionableView";
16 15
17 ActionableView::ActionableView() 16 ActionableView::ActionableView()
18 : has_capture_(false) { 17 : has_capture_(false) {
19 SetFocusable(true); 18 SetFocusable(true);
20 } 19 }
21 20
22 ActionableView::~ActionableView() { 21 ActionableView::~ActionableView() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 View::OnBlur(); 83 View::OnBlur();
85 // We render differently when focused. 84 // We render differently when focused.
86 SchedulePaint(); 85 SchedulePaint();
87 } 86 }
88 87
89 void ActionableView::OnGestureEvent(ui::GestureEvent* event) { 88 void ActionableView::OnGestureEvent(ui::GestureEvent* event) {
90 if (event->type() == ui::ET_GESTURE_TAP && PerformAction(*event)) 89 if (event->type() == ui::ET_GESTURE_TAP && PerformAction(*event))
91 event->SetHandled(); 90 event->SetHandled();
92 } 91 }
93 92
94 } // namespace internal
95 } // namespace ash 93 } // namespace ash
OLDNEW
« no previous file with comments | « ash/system/tray/actionable_view.h ('k') | ash/system/tray/fixed_sized_image_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698