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

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: Fixed compile time issues across the failing platform builds. 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 #if defined(USE_OZONE) || defined(USE_X11)
Alexei Svitkine (slow) 2015/07/07 22:00:58 Nit: I don't think it's necessary to guard forward
bruthig 2015/07/08 20:29:52 Done.
22
23 namespace ui {
24 class InputDeviceEventObserver;
25 } // namespace ui
26
27 #endif // defined(USE_OZONE) || defined(USE_X11)
28
21 class ChromeBrowserMainExtraPartsMetrics 29 class ChromeBrowserMainExtraPartsMetrics
22 : public ChromeBrowserMainExtraParts, 30 : public ChromeBrowserMainExtraParts,
23 public gfx::DisplayObserver, 31 public gfx::DisplayObserver,
24 public FirstWebContentsProfiler::Delegate { 32 public FirstWebContentsProfiler::Delegate {
25 public: 33 public:
26 ChromeBrowserMainExtraPartsMetrics(); 34 ChromeBrowserMainExtraPartsMetrics();
27 ~ChromeBrowserMainExtraPartsMetrics() override; 35 ~ChromeBrowserMainExtraPartsMetrics() override;
28 36
29 // Overridden from ChromeBrowserMainExtraParts: 37 // Overridden from ChromeBrowserMainExtraParts:
30 void PreProfileInit() override; 38 void PreProfileInit() override;
(...skipping 21 matching lines...) Expand all
52 // A cached value for the number of displays. 60 // A cached value for the number of displays.
53 int display_count_; 61 int display_count_;
54 62
55 // True iff |this| instance is registered as an observer of the native 63 // True iff |this| instance is registered as an observer of the native
56 // screen. 64 // screen.
57 bool is_screen_observer_; 65 bool is_screen_observer_;
58 66
59 // Measures start up performance of the first active web contents. 67 // Measures start up performance of the first active web contents.
60 scoped_ptr<FirstWebContentsProfiler> first_web_contents_profiler_; 68 scoped_ptr<FirstWebContentsProfiler> first_web_contents_profiler_;
61 69
70 #if defined(USE_OZONE) || defined(USE_X11)
71 scoped_ptr<ui::InputDeviceEventObserver> input_device_event_observer_;
72 #endif // defined(USE_OZONE) || defined(USE_X11)
73
62 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsMetrics); 74 DISALLOW_COPY_AND_ASSIGN(ChromeBrowserMainExtraPartsMetrics);
63 }; 75 };
64 76
65 #endif // CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_ 77 #endif // CHROME_BROWSER_METRICS_CHROME_BROWSER_MAIN_EXTRA_PARTS_METRICS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698