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

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

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/widget_delegate.h ('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) 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 #include "ui/views/widget/widget_delegate.h" 5 #include "ui/views/widget/widget_delegate.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "ui/gfx/image/image_skia.h" 8 #include "ui/gfx/image/image_skia.h"
9 #include "ui/views/bubble/bubble_delegate.h" 9 #include "ui/views/bubble/bubble_delegate.h"
10 #include "ui/views/view.h" 10 #include "ui/views/view.h"
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 } 143 }
144 144
145 bool WidgetDelegate::HasHitTestMask() const { 145 bool WidgetDelegate::HasHitTestMask() const {
146 return false; 146 return false;
147 } 147 }
148 148
149 void WidgetDelegate::GetHitTestMask(gfx::Path* mask) const { 149 void WidgetDelegate::GetHitTestMask(gfx::Path* mask) const {
150 DCHECK(mask); 150 DCHECK(mask);
151 } 151 }
152 152
153 bool WidgetDelegate::ShouldDescendIntoChildForEventHandling(
154 gfx::NativeView child,
155 const gfx::Point& location) {
156 return true;
157 }
158
153 //////////////////////////////////////////////////////////////////////////////// 159 ////////////////////////////////////////////////////////////////////////////////
154 // WidgetDelegateView: 160 // WidgetDelegateView:
155 161
156 WidgetDelegateView::WidgetDelegateView() { 162 WidgetDelegateView::WidgetDelegateView() {
157 } 163 }
158 164
159 WidgetDelegateView::~WidgetDelegateView() { 165 WidgetDelegateView::~WidgetDelegateView() {
160 } 166 }
161 167
162 Widget* WidgetDelegateView::GetWidget() { 168 Widget* WidgetDelegateView::GetWidget() {
163 return View::GetWidget(); 169 return View::GetWidget();
164 } 170 }
165 171
166 const Widget* WidgetDelegateView::GetWidget() const { 172 const Widget* WidgetDelegateView::GetWidget() const {
167 return View::GetWidget(); 173 return View::GetWidget();
168 } 174 }
169 175
170 } // namespace views 176 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/widget_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698