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

Side by Side Diff: ui/views/test/native_widget_factory_desktop.cc

Issue 1995963002: Fix "unused variable" warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo accidental change Created 4 years, 7 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 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 #include "ui/views/test/native_widget_factory.h" 5 #include "ui/views/test/native_widget_factory.h"
6 6
7 #if defined(USE_AURA) 7 #if defined(USE_AURA)
8 #include "ui/views/widget/native_widget_aura.h" 8 #include "ui/views/widget/native_widget_aura.h"
9 #if !defined(OS_CHROMEOS) 9 #if !defined(OS_CHROMEOS)
10 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h" 10 #include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
(...skipping 15 matching lines...) Expand all
26 26
27 namespace { 27 namespace {
28 28
29 class TestPlatformDesktopNativeWidget : public PlatformDesktopNativeWidget { 29 class TestPlatformDesktopNativeWidget : public PlatformDesktopNativeWidget {
30 public: 30 public:
31 TestPlatformDesktopNativeWidget(internal::NativeWidgetDelegate* delegate, 31 TestPlatformDesktopNativeWidget(internal::NativeWidgetDelegate* delegate,
32 bool* destroyed); 32 bool* destroyed);
33 ~TestPlatformDesktopNativeWidget() override; 33 ~TestPlatformDesktopNativeWidget() override;
34 34
35 private: 35 private:
36 bool mouse_capture_;
37 bool* destroyed_; 36 bool* destroyed_;
38 37
39 DISALLOW_COPY_AND_ASSIGN(TestPlatformDesktopNativeWidget); 38 DISALLOW_COPY_AND_ASSIGN(TestPlatformDesktopNativeWidget);
40 }; 39 };
41 40
42 // A widget that assumes mouse capture always works. It won't in testing, so we 41 // A widget that assumes mouse capture always works. It won't in testing, so we
43 // mock it. 42 // mock it.
44 TestPlatformDesktopNativeWidget::TestPlatformDesktopNativeWidget( 43 TestPlatformDesktopNativeWidget::TestPlatformDesktopNativeWidget(
45 internal::NativeWidgetDelegate* delegate, 44 internal::NativeWidgetDelegate* delegate,
46 bool* destroyed) 45 bool* destroyed)
(...skipping 15 matching lines...) Expand all
62 #if defined(OS_CHROMEOS) 61 #if defined(OS_CHROMEOS)
63 // Chromeos only has one NativeWidgetType. 62 // Chromeos only has one NativeWidgetType.
64 return CreatePlatformNativeWidgetImpl(init_params, widget, 0u, destroyed); 63 return CreatePlatformNativeWidgetImpl(init_params, widget, 0u, destroyed);
65 #else 64 #else
66 return new TestPlatformDesktopNativeWidget(widget, destroyed); 65 return new TestPlatformDesktopNativeWidget(widget, destroyed);
67 #endif 66 #endif
68 } 67 }
69 68
70 } // namespace test 69 } // namespace test
71 } // namespace views 70 } // namespace views
OLDNEW
« ui/gl/sync_control_vsync_provider.cc ('K') | « ui/gl/sync_control_vsync_provider.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698