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

Side by Side Diff: ui/views/widget/widget_delegate.h

Issue 10831361: Draggable region support for frameless app window on CrOS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove event type filtering 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/widget/native_widget_aura.cc ('k') | ui/views/widget/widget_delegate.cc » ('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_WIDGET_WIDGET_DELEGATE_H_ 5 #ifndef UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 6 #define UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "ui/base/accessibility/accessibility_types.h" 10 #include "ui/base/accessibility/accessibility_types.h"
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // the default window manager. In some cases, like panel, we would like to 140 // the default window manager. In some cases, like panel, we would like to
141 // manage the positions by ourselves. 141 // manage the positions by ourselves.
142 virtual bool WillProcessWorkAreaChange() const; 142 virtual bool WillProcessWorkAreaChange() const;
143 143
144 // Returns true if window has a hit-test mask. 144 // Returns true if window has a hit-test mask.
145 virtual bool HasHitTestMask() const; 145 virtual bool HasHitTestMask() const;
146 146
147 // Provides the hit-test mask if HasHitTestMask above returns true. 147 // Provides the hit-test mask if HasHitTestMask above returns true.
148 virtual void GetHitTestMask(gfx::Path* mask) const; 148 virtual void GetHitTestMask(gfx::Path* mask) const;
149 149
150 // Returns true if event handling should descend into |child|.
151 // |location| is in terms of the Window.
152 virtual bool ShouldDescendIntoChildForEventHandling(
153 gfx::NativeView child,
154 const gfx::Point& location);
155
150 protected: 156 protected:
151 virtual ~WidgetDelegate() {} 157 virtual ~WidgetDelegate() {}
152 158
153 private: 159 private:
154 View* default_contents_view_; 160 View* default_contents_view_;
155 161
156 DISALLOW_COPY_AND_ASSIGN(WidgetDelegate); 162 DISALLOW_COPY_AND_ASSIGN(WidgetDelegate);
157 }; 163 };
158 164
159 // A WidgetDelegate implementation that is-a View. Used to override GetWidget() 165 // A WidgetDelegate implementation that is-a View. Used to override GetWidget()
160 // to call View's GetWidget() for the common case where a WidgetDelegate 166 // to call View's GetWidget() for the common case where a WidgetDelegate
161 // implementation is-a View. 167 // implementation is-a View.
162 class VIEWS_EXPORT WidgetDelegateView : public WidgetDelegate, public View { 168 class VIEWS_EXPORT WidgetDelegateView : public WidgetDelegate, public View {
163 public: 169 public:
164 WidgetDelegateView(); 170 WidgetDelegateView();
165 virtual ~WidgetDelegateView(); 171 virtual ~WidgetDelegateView();
166 172
167 // Overridden from WidgetDelegate: 173 // Overridden from WidgetDelegate:
168 virtual Widget* GetWidget() OVERRIDE; 174 virtual Widget* GetWidget() OVERRIDE;
169 virtual const Widget* GetWidget() const OVERRIDE; 175 virtual const Widget* GetWidget() const OVERRIDE;
170 176
171 private: 177 private:
172 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView); 178 DISALLOW_COPY_AND_ASSIGN(WidgetDelegateView);
173 }; 179 };
174 180
175 } // namespace views 181 } // namespace views
176 182
177 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_ 183 #endif // UI_VIEWS_WIDGET_WIDGET_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698