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

Side by Side Diff: ui/message_center/views/message_center_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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
7 7
8 8
9 #include "ui/gfx/animation/animation_delegate.h" 9 #include "ui/gfx/animation/animation_delegate.h"
10 #include "ui/message_center/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void SetSettingsVisible(bool visible); 61 void SetSettingsVisible(bool visible);
62 void OnSettingsChanged(); 62 void OnSettingsChanged();
63 bool settings_visible() const { return settings_visible_; } 63 bool settings_visible() const { return settings_visible_; }
64 MessageCenterTray* tray() { return tray_; } 64 MessageCenterTray* tray() { return tray_; }
65 65
66 void SetIsClosing(bool is_closing); 66 void SetIsClosing(bool is_closing);
67 67
68 protected: 68 protected:
69 // Overridden from views::View: 69 // Overridden from views::View:
70 virtual void Layout() OVERRIDE; 70 virtual void Layout() OVERRIDE;
71 virtual gfx::Size GetPreferredSize() OVERRIDE; 71 virtual gfx::Size GetPreferredSize() const OVERRIDE;
72 virtual int GetHeightForWidth(int width) OVERRIDE; 72 virtual int GetHeightForWidth(int width) const OVERRIDE;
73 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; 73 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE;
74 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 74 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
75 75
76 // Overridden from MessageCenterObserver: 76 // Overridden from MessageCenterObserver:
77 virtual void OnNotificationAdded(const std::string& id) OVERRIDE; 77 virtual void OnNotificationAdded(const std::string& id) OVERRIDE;
78 virtual void OnNotificationRemoved(const std::string& id, 78 virtual void OnNotificationRemoved(const std::string& id,
79 bool by_user) OVERRIDE; 79 bool by_user) OVERRIDE;
80 virtual void OnNotificationUpdated(const std::string& id) OVERRIDE; 80 virtual void OnNotificationUpdated(const std::string& id) OVERRIDE;
81 81
82 // Overridden from MessageCenterController: 82 // Overridden from MessageCenterController:
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 bool is_closing_; 137 bool is_closing_;
138 138
139 scoped_ptr<MessageViewContextMenuController> context_menu_controller_; 139 scoped_ptr<MessageViewContextMenuController> context_menu_controller_;
140 140
141 DISALLOW_COPY_AND_ASSIGN(MessageCenterView); 141 DISALLOW_COPY_AND_ASSIGN(MessageCenterView);
142 }; 142 };
143 143
144 } // namespace message_center 144 } // namespace message_center
145 145
146 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_ 146 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_CENTER_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_center_button_bar.cc ('k') | ui/message_center/views/message_center_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698