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

Side by Side Diff: chrome/browser/chromeos/ui/echo_dialog_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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "ui/views/controls/styled_label_listener.h" 10 #include "ui/views/controls/styled_label_listener.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // views::WidgetDelegate overrides. 59 // views::WidgetDelegate overrides.
60 virtual ui::ModalType GetModalType() const OVERRIDE; 60 virtual ui::ModalType GetModalType() const OVERRIDE;
61 virtual bool ShouldShowWindowTitle() const OVERRIDE; 61 virtual bool ShouldShowWindowTitle() const OVERRIDE;
62 virtual bool ShouldShowWindowIcon() const OVERRIDE; 62 virtual bool ShouldShowWindowIcon() const OVERRIDE;
63 63
64 // views::LinkListener override. 64 // views::LinkListener override.
65 virtual void StyledLabelLinkClicked(const gfx::Range& range, 65 virtual void StyledLabelLinkClicked(const gfx::Range& range,
66 int event_flags) OVERRIDE; 66 int event_flags) OVERRIDE;
67 67
68 // views::View override. 68 // views::View override.
69 virtual gfx::Size GetPreferredSize() OVERRIDE; 69 virtual gfx::Size GetPreferredSize() const OVERRIDE;
70 70
71 // Sets the border and bounds for the styled label containing the dialog 71 // Sets the border and bounds for the styled label containing the dialog
72 // text. 72 // text.
73 void SetLabelBorderAndBounds(); 73 void SetLabelBorderAndBounds();
74 74
75 views::StyledLabel* label_; 75 views::StyledLabel* label_;
76 EchoDialogListener* listener_; 76 EchoDialogListener* listener_;
77 int ok_button_label_id_; 77 int ok_button_label_id_;
78 int cancel_button_label_id_; 78 int cancel_button_label_id_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(EchoDialogView); 80 DISALLOW_COPY_AND_ASSIGN(EchoDialogView);
81 }; 81 };
82 82
83 } // namespace chromeos 83 } // namespace chromeos
84 84
85 #endif // CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_VIEW_H_ 85 #endif // CHROME_BROWSER_CHROMEOS_UI_ECHO_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698