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

Side by Side Diff: chrome/browser/chromeos/notifications/notification_panel.cc

Issue 8771006: views: Move the remaining file from views/ to ui/views/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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) 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 // Draws the view for the balloons. 5 // Draws the view for the balloons.
6 6
7 #include "chrome/browser/chromeos/notifications/notification_panel.h" 7 #include "chrome/browser/chromeos/notifications/notification_panel.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" 12 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
13 #include "chrome/browser/chromeos/notifications/balloon_view.h" 13 #include "chrome/browser/chromeos/notifications/balloon_view.h"
14 #include "chrome/common/chrome_notification_types.h" 14 #include "chrome/common/chrome_notification_types.h"
15 #include "content/public/browser/notification_details.h" 15 #include "content/public/browser/notification_details.h"
16 #include "content/public/browser/notification_source.h" 16 #include "content/public/browser/notification_source.h"
17 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
18 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h" 18 #include "third_party/cros_system_api/window_manager/chromeos_wm_ipc_enums.h"
19 #include "ui/base/l10n/l10n_util.h" 19 #include "ui/base/l10n/l10n_util.h"
20 #include "ui/base/resource/resource_bundle.h" 20 #include "ui/base/resource/resource_bundle.h"
21 #include "ui/gfx/canvas.h" 21 #include "ui/gfx/canvas.h"
22 #include "ui/views/background.h"
22 #include "ui/views/controls/native/native_view_host.h" 23 #include "ui/views/controls/native/native_view_host.h"
23 #include "ui/views/controls/scroll_view.h" 24 #include "ui/views/controls/scroll_view.h"
24 #include "ui/views/widget/native_widget_gtk.h" 25 #include "ui/views/widget/native_widget_gtk.h"
25 #include "views/background.h"
26 26
27 #define SET_STATE(state) SetState(state, __PRETTY_FUNCTION__) 27 #define SET_STATE(state) SetState(state, __PRETTY_FUNCTION__)
28 28
29 using views::Widget; 29 using views::Widget;
30 30
31 namespace { 31 namespace {
32 // Minimum and maximum size of balloon content. 32 // Minimum and maximum size of balloon content.
33 const int kBalloonMinWidth = 300; 33 const int kBalloonMinWidth = 300;
34 const int kBalloonMaxWidth = 300; 34 const int kBalloonMaxWidth = 300;
35 const int kBalloonMinHeight = 24; 35 const int kBalloonMinHeight = 24;
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after
888 &origin); 888 &origin);
889 return rect.Contains(gfx::Rect(origin, view->size())); 889 return rect.Contains(gfx::Rect(origin, view->size()));
890 } 890 }
891 891
892 892
893 bool NotificationPanelTester::IsActive(const BalloonViewImpl* view) const { 893 bool NotificationPanelTester::IsActive(const BalloonViewImpl* view) const {
894 return panel_->active_ == view; 894 return panel_->active_ == view;
895 } 895 }
896 896
897 } // namespace chromeos 897 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/notifications/balloon_view.cc ('k') | chrome/browser/chromeos/status/status_area_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698