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

Side by Side Diff: ui/message_center/views/notifier_settings_view.h

Issue 22720004: Tweak pixel-by-pixel layout for Notifications message center. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo Created 7 years, 4 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 | « no previous file | ui/message_center/views/notifier_settings_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) 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_NOTIFIER_SETTINGS_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
11 #include "ui/message_center/message_center_export.h" 11 #include "ui/message_center/message_center_export.h"
12 #include "ui/message_center/notifier_settings.h" 12 #include "ui/message_center/notifier_settings.h"
13 #include "ui/message_center/views/message_bubble_base.h" 13 #include "ui/message_center/views/message_bubble_base.h"
14 #include "ui/views/controls/button/image_button.h" 14 #include "ui/views/controls/button/image_button.h"
15 #include "ui/views/controls/button/menu_button_listener.h" 15 #include "ui/views/controls/button/menu_button_listener.h"
16 #include "ui/views/view.h" 16 #include "ui/views/view.h"
17 17
18 namespace views { 18 namespace views {
19 class Label; 19 class Label;
20 class MenuButton;
20 class MenuRunner; 21 class MenuRunner;
21 } 22 }
22 23
23 namespace message_center { 24 namespace message_center {
24 class NotifierGroupMenuModel; 25 class NotifierGroupMenuModel;
25 26
26 // A class to show the list of notifier extensions / URL patterns and allow 27 // A class to show the list of notifier extensions / URL patterns and allow
27 // users to customize the settings. 28 // users to customize the settings.
28 class MESSAGE_CENTER_EXPORT NotifierSettingsView 29 class MESSAGE_CENTER_EXPORT NotifierSettingsView
29 : public NotifierSettingsObserver, 30 : public NotifierSettingsObserver,
(...skipping 29 matching lines...) Expand all
59 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE; 60 virtual bool OnMouseWheel(const ui::MouseWheelEvent& event) OVERRIDE;
60 61
61 // Overridden from views::ButtonListener: 62 // Overridden from views::ButtonListener:
62 virtual void ButtonPressed(views::Button* sender, 63 virtual void ButtonPressed(views::Button* sender,
63 const ui::Event& event) OVERRIDE; 64 const ui::Event& event) OVERRIDE;
64 virtual void OnMenuButtonClicked(views::View* source, 65 virtual void OnMenuButtonClicked(views::View* source,
65 const gfx::Point& point) OVERRIDE; 66 const gfx::Point& point) OVERRIDE;
66 67
67 views::ImageButton* title_arrow_; 68 views::ImageButton* title_arrow_;
68 views::Label* title_label_; 69 views::Label* title_label_;
70 views::MenuButton* notifier_group_selector_;
69 views::ScrollView* scroller_; 71 views::ScrollView* scroller_;
70 NotifierSettingsProvider* provider_; 72 NotifierSettingsProvider* provider_;
71 std::set<NotifierButton*> buttons_; 73 std::set<NotifierButton*> buttons_;
72 scoped_ptr<NotifierGroupMenuModel> notifier_group_menu_model_; 74 scoped_ptr<NotifierGroupMenuModel> notifier_group_menu_model_;
73 scoped_ptr<views::MenuRunner> notifier_group_menu_runner_; 75 scoped_ptr<views::MenuRunner> notifier_group_menu_runner_;
74 76
75 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView); 77 DISALLOW_COPY_AND_ASSIGN(NotifierSettingsView);
76 }; 78 };
77 79
78 } // namespace message_center 80 } // namespace message_center
79 81
80 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_ 82 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFIER_SETTINGS_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/message_center/views/notifier_settings_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698