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

Side by Side Diff: views/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/views.gyp ('k') | no next file » | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_DELEGATE_H_ 5 #ifndef VIEWS_VIEWS_DELEGATE_H_
6 #define VIEWS_VIEWS_DELEGATE_H_ 6 #define VIEWS_VIEWS_DELEGATE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 #if defined(OS_WIN) 73 #if defined(OS_WIN)
74 // Retrieves the default window icon to use for windows if none is specified. 74 // Retrieves the default window icon to use for windows if none is specified.
75 virtual HICON GetDefaultWindowIcon() const = 0; 75 virtual HICON GetDefaultWindowIcon() const = 0;
76 #endif 76 #endif
77 77
78 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to 78 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to
79 // ensure we don't attempt to exit while a menu is showing. 79 // ensure we don't attempt to exit while a menu is showing.
80 virtual void AddRef() = 0; 80 virtual void AddRef() = 0;
81 virtual void ReleaseRef() = 0; 81 virtual void ReleaseRef() = 0;
82 82
83 // Converts views::Event::flags to a WindowOpenDisposition.
84 virtual int GetDispositionForEvent(int event_flags) = 0;
85
83 // The active ViewsDelegate used by the views system. 86 // The active ViewsDelegate used by the views system.
84 static ViewsDelegate* views_delegate; 87 static ViewsDelegate* views_delegate;
85 }; 88 };
86 89
87 } // namespace views 90 } // namespace views
88 91
89 #endif // VIEWS_VIEWS_DELEGATE_H_ 92 #endif // VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « views/views.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698