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

Side by Side Diff: ui/views/views_delegate.h

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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 | « ui/views/view_unittest.cc ('k') | ui/views/widget/widget.h » ('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) 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_VIEWS_DELEGATE_H_ 5 #ifndef UI_VIEWS_VIEWS_DELEGATE_H_
6 #define UI_VIEWS_VIEWS_DELEGATE_H_ 6 #define UI_VIEWS_VIEWS_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Returns whether the embedding app wants windows to be created with the 97 // Returns whether the embedding app wants windows to be created with the
98 // views::Widget marked as transparent. For example, an app may wish to 98 // views::Widget marked as transparent. For example, an app may wish to
99 // apply transparent window frames in the NonClientFrameView. 99 // apply transparent window frames in the NonClientFrameView.
100 virtual bool UseTransparentWindows() const = 0; 100 virtual bool UseTransparentWindows() const = 0;
101 101
102 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to 102 // AddRef/ReleaseRef are invoked while a menu is visible. They are used to
103 // ensure we don't attempt to exit while a menu is showing. 103 // ensure we don't attempt to exit while a menu is showing.
104 virtual void AddRef() = 0; 104 virtual void AddRef() = 0;
105 virtual void ReleaseRef() = 0; 105 virtual void ReleaseRef() = 0;
106 106
107 // Converts views::Event::flags to a WindowOpenDisposition. 107 // Converts ui::Event::flags to a WindowOpenDisposition.
108 virtual int GetDispositionForEvent(int event_flags) = 0; 108 virtual int GetDispositionForEvent(int event_flags) = 0;
109 109
110 #if defined(USE_AURA) 110 #if defined(USE_AURA)
111 // Creates an object that implements desktop integration behavior. Returned 111 // Creates an object that implements desktop integration behavior. Returned
112 // object is owned by the NativeWidgetAura passed in. May return NULL. 112 // object is owned by the NativeWidgetAura passed in. May return NULL.
113 virtual NativeWidgetHelperAura* CreateNativeWidgetHelper( 113 virtual NativeWidgetHelperAura* CreateNativeWidgetHelper(
114 NativeWidgetAura* native_widget) = 0; 114 NativeWidgetAura* native_widget) = 0;
115 #endif 115 #endif
116 116
117 // Creates a web contents. This will return NULL unless overriden. 117 // Creates a web contents. This will return NULL unless overriden.
118 virtual content::WebContents* CreateWebContents( 118 virtual content::WebContents* CreateWebContents(
119 content::BrowserContext* browser_context, 119 content::BrowserContext* browser_context,
120 content::SiteInstance* site_instance) = 0; 120 content::SiteInstance* site_instance) = 0;
121 }; 121 };
122 122
123 } // namespace views 123 } // namespace views
124 124
125 #endif // UI_VIEWS_VIEWS_DELEGATE_H_ 125 #endif // UI_VIEWS_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/view_unittest.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698