OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |