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

Side by Side Diff: ui/views/test/test_views_delegate.h

Issue 1121633002: win: Work on reducing number of style plugin warnings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 #ifndef UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/views/views_delegate.h" 9 #include "ui/views/views_delegate.h"
10 10
(...skipping 19 matching lines...) Expand all
30 use_transparent_windows_ = transparent; 30 use_transparent_windows_ = transparent;
31 } 31 }
32 32
33 // Allows tests to provide a ContextFactory via the ViewsDelegate interface. 33 // Allows tests to provide a ContextFactory via the ViewsDelegate interface.
34 void set_context_factory(ui::ContextFactory* context_factory) { 34 void set_context_factory(ui::ContextFactory* context_factory) {
35 context_factory_ = context_factory; 35 context_factory_ = context_factory;
36 } 36 }
37 37
38 // ViewsDelegate: 38 // ViewsDelegate:
39 #if defined(OS_WIN) 39 #if defined(OS_WIN)
40 HICON GetSmallWindowIcon() const override { return nullptr; } 40 HICON GetSmallWindowIcon() const override;
41 #endif 41 #endif
42 void OnBeforeWidgetInit(Widget::InitParams* params, 42 void OnBeforeWidgetInit(Widget::InitParams* params,
43 internal::NativeWidgetDelegate* delegate) override; 43 internal::NativeWidgetDelegate* delegate) override;
44 ui::ContextFactory* GetContextFactory() override; 44 ui::ContextFactory* GetContextFactory() override;
45 45
46 private: 46 private:
47 ui::ContextFactory* context_factory_; 47 ui::ContextFactory* context_factory_;
48 bool use_desktop_native_widgets_; 48 bool use_desktop_native_widgets_;
49 bool use_transparent_windows_; 49 bool use_transparent_windows_;
50 50
51 #if defined(USE_AURA) 51 #if defined(USE_AURA)
52 scoped_ptr<wm::WMState> wm_state_; 52 scoped_ptr<wm::WMState> wm_state_;
53 #endif 53 #endif
54 54
55 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); 55 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
56 }; 56 };
57 57
58 } // namespace views 58 } // namespace views
59 59
60 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 60 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698