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

Side by Side Diff: ui/views/window/dialog_client_view.h

Issue 273223002: views: Make view::Views::GetPreferredSize() const. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More compile fix for ToT Created 6 years, 7 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/window/custom_frame_view.cc ('k') | ui/views/window/dialog_client_view.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_WINDOW_DIALOG_CLIENT_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_
6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ 6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_
7 7
8 #include "ui/base/ui_base_types.h" 8 #include "ui/base/ui_base_types.h"
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/focus/focus_manager.h" 10 #include "ui/views/focus/focus_manager.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 virtual DialogClientView* AsDialogClientView() OVERRIDE; 50 virtual DialogClientView* AsDialogClientView() OVERRIDE;
51 virtual const DialogClientView* AsDialogClientView() const OVERRIDE; 51 virtual const DialogClientView* AsDialogClientView() const OVERRIDE;
52 52
53 // FocusChangeListener implementation: 53 // FocusChangeListener implementation:
54 virtual void OnWillChangeFocus(View* focused_before, 54 virtual void OnWillChangeFocus(View* focused_before,
55 View* focused_now) OVERRIDE; 55 View* focused_now) OVERRIDE;
56 virtual void OnDidChangeFocus(View* focused_before, 56 virtual void OnDidChangeFocus(View* focused_before,
57 View* focused_now) OVERRIDE; 57 View* focused_now) OVERRIDE;
58 58
59 // View implementation: 59 // View implementation:
60 virtual gfx::Size GetPreferredSize() OVERRIDE; 60 virtual gfx::Size GetPreferredSize() const OVERRIDE;
61 virtual void Layout() OVERRIDE; 61 virtual void Layout() OVERRIDE;
62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 62 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE;
63 virtual void ViewHierarchyChanged( 63 virtual void ViewHierarchyChanged(
64 const ViewHierarchyChangedDetails& details) OVERRIDE; 64 const ViewHierarchyChangedDetails& details) OVERRIDE;
65 virtual void NativeViewHierarchyChanged() OVERRIDE; 65 virtual void NativeViewHierarchyChanged() OVERRIDE;
66 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE; 66 virtual void OnNativeThemeChanged(const ui::NativeTheme* theme) OVERRIDE;
67 67
68 // ButtonListener implementation: 68 // ButtonListener implementation:
69 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE; 69 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
70 70
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 // http://crbug.com/71940). This is used to avoid notifying the delegate 126 // http://crbug.com/71940). This is used to avoid notifying the delegate
127 // twice, which can have bad consequences. 127 // twice, which can have bad consequences.
128 bool notified_delegate_; 128 bool notified_delegate_;
129 129
130 DISALLOW_COPY_AND_ASSIGN(DialogClientView); 130 DISALLOW_COPY_AND_ASSIGN(DialogClientView);
131 }; 131 };
132 132
133 } // namespace views 133 } // namespace views
134 134
135 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ 135 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/window/custom_frame_view.cc ('k') | ui/views/window/dialog_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698