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

Side by Side Diff: chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.h

Issue 1182303005: Fixed the Touchscreen.TouchEventsEnabled histogram to record the correct values on X11 and Ozone ba… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added logging.h include to device_data_manager_test_api_stub.cc. Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ 5 #ifndef CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_
6 #define CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ 6 #define CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "chrome/browser/chrome_browser_main_extra_parts.h" 11 #include "chrome/browser/chrome_browser_main_extra_parts.h"
12 #include "chrome/browser/metrics/first_web_contents_profiler.h" 12 #include "chrome/browser/metrics/first_web_contents_profiler.h"
13 #include "ui/gfx/display_observer.h" 13 #include "ui/gfx/display_observer.h"
14 14
15 class ChromeBrowserMainParts; 15 class ChromeBrowserMainParts;
16 16
17 namespace chrome { 17 namespace chrome {
18 void AddMetricsExtraParts(ChromeBrowserMainParts* main_parts); 18 void AddMetricsExtraParts(ChromeBrowserMainParts* main_parts);
19 } 19 }
20 20
21 namespace ui {
22 class InputDeviceEventObserver;
23 } // namespace ui
24
21 class ChromeBrowserMainExtraPartsMetrics 25 class ChromeBrowserMainExtraPartsMetrics
22 : public ChromeBrowserMainExtraParts, 26 : public ChromeBrowserMainExtraParts,
23 public gfx::DisplayObserver, 27 public gfx::DisplayObserver,
24 public FirstWebContentsProfiler::Delegate { 28 public FirstWebContentsProfiler::Delegate {
25 public: 29 public:
26 ChromeBrowserMainExtraPartsMetrics(); 30 ChromeBrowserMainExtraPartsMetrics();
27 ~ChromeBrowserMainExtraPartsMetrics() override; 31 ~ChromeBrowserMainExtraPartsMetrics() override;
28 32
29 // Overridden from ChromeBrowserMainExtraParts: 33 // Overridden from ChromeBrowserMainExtraParts:
30 void PreProfileInit() override; 34 void PreProfileInit() override;
(...skipping 21 matching lines...) Expand all
52 // A cached value for the number of displays. 56 // A cached value for the number of displays.
53 int display_count_; 57 int display_count_;
54 58
55 // True iff |this| instance is registered as an observer of the native 59 // True iff |this| instance is registered as an observer of the native
56 // screen. 60 // screen.
57 bool is_screen_observer_; 61 bool is_screen_observer_;
58 62
59 // Measures start up performance of the first active web contents. 63 // Measures start up performance of the first active web contents.
60 scoped_ptr<FirstWebContentsProfiler> first_web_contents_profiler_; 64 scoped_ptr<FirstWebContentsProfiler> first_web_contents_profiler_;
61 65
66 #if defined(USE_OZONE) || defined(USE_X11)
67 scoped_ptr<ui::InputDeviceEventObserver> input_device_event_observer_;
68 #endif // defined(USE_OZONE) || defined(USE_X11)
69
62 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsMetrics); 70 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsMetrics);
63 }; 71 };
64 72
65 #endif // CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ 73 #endif // CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698