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

Side by Side Diff: views/window/client_view.cc

Issue 8368006: Support Windows native textfield, combobox, etc. in new bubbles. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Restore Widget return; same as Patch Set 9 with updated CreateBubble comment. Created 9 years, 1 month 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/window/client_view.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) 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 #include "base/logging.h" 5 #include "base/logging.h"
6 #include "ui/base/accessibility/accessible_view_state.h" 6 #include "ui/base/accessibility/accessible_view_state.h"
7 #include "views/window/client_view.h" 7 #include "views/window/client_view.h"
8 #if defined(OS_LINUX) 8 #if defined(OS_LINUX)
9 #include "views/window/hit_test.h" 9 #include "views/window/hit_test.h"
10 #endif 10 #endif
(...skipping 19 matching lines...) Expand all
30 } 30 }
31 31
32 DialogClientView* ClientView::AsDialogClientView() { 32 DialogClientView* ClientView::AsDialogClientView() {
33 return NULL; 33 return NULL;
34 } 34 }
35 35
36 const DialogClientView* ClientView::AsDialogClientView() const { 36 const DialogClientView* ClientView::AsDialogClientView() const {
37 return NULL; 37 return NULL;
38 } 38 }
39 39
40 BubbleView* ClientView::AsBubbleView() {
41 return NULL;
42 }
43
44 const BubbleView* ClientView::AsBubbleView() const {
45 return NULL;
46 }
47
48 bool ClientView::CanClose() { 40 bool ClientView::CanClose() {
49 return true; 41 return true;
50 } 42 }
51 43
52 void ClientView::WidgetClosing() { 44 void ClientView::WidgetClosing() {
53 } 45 }
54 46
55 /////////////////////////////////////////////////////////////////////////////// 47 ///////////////////////////////////////////////////////////////////////////////
56 // ClientView, View overrides: 48 // ClientView, View overrides:
57 49
(...skipping 30 matching lines...) Expand all
88 if (is_add && child == this) { 80 if (is_add && child == this) {
89 DCHECK(GetWidget()); 81 DCHECK(GetWidget());
90 DCHECK(contents_view_); // |contents_view_| must be valid now! 82 DCHECK(contents_view_); // |contents_view_| must be valid now!
91 // Insert |contents_view_| at index 0 so it is first in the focus chain. 83 // Insert |contents_view_| at index 0 so it is first in the focus chain.
92 // (the OK/Cancel buttons are inserted before contents_view_) 84 // (the OK/Cancel buttons are inserted before contents_view_)
93 AddChildViewAt(contents_view_, 0); 85 AddChildViewAt(contents_view_, 0);
94 } 86 }
95 } 87 }
96 88
97 } // namespace views 89 } // namespace views
OLDNEW
« no previous file with comments | « views/window/client_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698