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

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

Issue 7067032: Add MenuModelAdapter to wrap ui::MenuModel with views::MenuDelegate interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Implemented reviewer recommendations. Created 9 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 | Annotate | Revision Log
« no previous file with comments | « views/controls/menu/menu_model_adapter_unittest.cc ('k') | views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 5 #ifndef VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
6 #define VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 6 #define 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/base/accessibility/accessibility_types.h" 9 #include "ui/base/accessibility/accessibility_types.h"
10 #include "ui/base/clipboard/clipboard.h" 10 #include "ui/base/clipboard/clipboard.h"
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 bool has_submenu) {} 44 bool has_submenu) {}
45 #if defined(OS_WIN) 45 #if defined(OS_WIN)
46 virtual HICON GetDefaultWindowIcon() const OVERRIDE { 46 virtual HICON GetDefaultWindowIcon() const OVERRIDE {
47 return NULL; 47 return NULL;
48 } 48 }
49 #endif 49 #endif
50 50
51 virtual void AddRef() OVERRIDE {} 51 virtual void AddRef() OVERRIDE {}
52 virtual void ReleaseRef() OVERRIDE {} 52 virtual void ReleaseRef() OVERRIDE {}
53 53
54 virtual int GetDispositionForEvent(int event_flags) OVERRIDE {
55 return 0;
56 }
57
54 private: 58 private:
55 mutable scoped_ptr<ui::Clipboard> clipboard_; 59 mutable scoped_ptr<ui::Clipboard> clipboard_;
56 60
57 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate); 61 DISALLOW_COPY_AND_ASSIGN(TestViewsDelegate);
58 }; 62 };
59 63
60 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_ 64 #endif // VIEWS_TEST_TEST_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/controls/menu/menu_model_adapter_unittest.cc ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698