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

Side by Side Diff: ash/common/system/chromeos/palette/common_palette_tool.h

Issue 2308823002: Add UMA stats for pen palette (Closed)
Patch Set: rebase Created 4 years, 3 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
« no previous file with comments | « no previous file | ash/common/system/chromeos/palette/common_palette_tool.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_COMMON_SYSTEM_CHROMEOS_PALETTE_COMMON_PALETTE_TOOL_H_ 5 #ifndef ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_COMMON_PALETTE_TOOL_H_
6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_COMMON_PALETTE_TOOL_H_ 6 #define ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_COMMON_PALETTE_TOOL_H_
7 7
8 #include "ash/common/system/chromeos/palette/palette_tool.h" 8 #include "ash/common/system/chromeos/palette/palette_tool.h"
9 #include "ash/common/system/tray/view_click_listener.h" 9 #include "ash/common/system/tray/view_click_listener.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/time/time.h"
11 12
12 namespace gfx { 13 namespace gfx {
13 struct VectorIcon; 14 struct VectorIcon;
14 } 15 }
15 16
16 namespace ash { 17 namespace ash {
17 18
18 class HoverHighlightView; 19 class HoverHighlightView;
19 20
20 // A PaletteTool implementation with a standard view support. 21 // A PaletteTool implementation with a standard view support.
(...skipping 14 matching lines...) Expand all
35 // Returns the icon used in the palette tray on the left-most edge of the 36 // Returns the icon used in the palette tray on the left-most edge of the
36 // tool. 37 // tool.
37 virtual const gfx::VectorIcon& GetPaletteIcon() const = 0; 38 virtual const gfx::VectorIcon& GetPaletteIcon() const = 0;
38 39
39 // Creates a default view implementation to be returned by CreateView. 40 // Creates a default view implementation to be returned by CreateView.
40 views::View* CreateDefaultView(const base::string16& name); 41 views::View* CreateDefaultView(const base::string16& name);
41 42
42 private: 43 private:
43 HoverHighlightView* highlight_view_ = nullptr; 44 HoverHighlightView* highlight_view_ = nullptr;
44 45
46 // start_time_ is initialized when the tool becomes active.
47 // Used for recording UMA metrics.
48 base::TimeTicks start_time_;
49
45 DISALLOW_COPY_AND_ASSIGN(CommonPaletteTool); 50 DISALLOW_COPY_AND_ASSIGN(CommonPaletteTool);
46 }; 51 };
47 52
48 } // namespace ash 53 } // namespace ash
49 54
50 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_COMMON_PALETTE_TOOL_H_ 55 #endif // ASH_COMMON_SYSTEM_CHROMEOS_PALETTE_COMMON_PALETTE_TOOL_H_
OLDNEW
« no previous file with comments | « no previous file | ash/common/system/chromeos/palette/common_palette_tool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698