OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 virtual void NotifyMenuItemFocused(const string16& menu_name, | 42 virtual void NotifyMenuItemFocused(const string16& menu_name, |
43 const string16& menu_item_name, | 43 const string16& menu_item_name, |
44 int item_index, | 44 int item_index, |
45 int item_count, | 45 int item_count, |
46 bool has_submenu) OVERRIDE {} | 46 bool has_submenu) OVERRIDE {} |
47 #if defined(OS_WIN) | 47 #if defined(OS_WIN) |
48 virtual HICON GetDefaultWindowIcon() const OVERRIDE { | 48 virtual HICON GetDefaultWindowIcon() const OVERRIDE { |
49 return NULL; | 49 return NULL; |
50 } | 50 } |
51 #endif | 51 #endif |
52 | 52 virtual NonClientFrameView* CreateDefaultNonClientFrameView( |
| 53 Widget* widget) OVERRIDE; |
53 virtual void AddRef() OVERRIDE {} | 54 virtual void AddRef() OVERRIDE {} |
54 virtual void ReleaseRef() OVERRIDE {} | 55 virtual void ReleaseRef() OVERRIDE {} |
55 | 56 |
56 virtual int GetDispositionForEvent(int event_flags) OVERRIDE; | 57 virtual int GetDispositionForEvent(int event_flags) OVERRIDE; |
57 | 58 |
58 private: | 59 private: |
59 mutable scoped_ptr<ui::Clipboard> clipboard_; | 60 mutable scoped_ptr<ui::Clipboard> clipboard_; |
60 | 61 |
61 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); | 62 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); |
62 }; | 63 }; |
63 | 64 |
64 } // namespace views | 65 } // namespace views |
65 | 66 |
66 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ | 67 #endif // UI_VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ |
OLD | NEW |