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

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

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "app/l10n_util.h" 11 #include "app/l10n_util.h"
12 #include "app/resource_bundle.h"
13 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" 12 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
14 #include "chrome/browser/chromeos/notifications/balloon_view.h" 13 #include "chrome/browser/chromeos/notifications/balloon_view.h"
15 #include "chrome/common/notification_details.h" 14 #include "chrome/common/notification_details.h"
16 #include "chrome/common/notification_source.h" 15 #include "chrome/common/notification_source.h"
17 #include "gfx/canvas.h" 16 #include "gfx/canvas.h"
18 #include "grit/generated_resources.h" 17 #include "grit/generated_resources.h"
19 #include "third_party/cros/chromeos_wm_ipc_enums.h" 18 #include "third_party/cros/chromeos_wm_ipc_enums.h"
19 #include "ui/base/resource/resource_bundle.h"
20 #include "views/background.h" 20 #include "views/background.h"
21 #include "views/controls/native/native_view_host.h" 21 #include "views/controls/native/native_view_host.h"
22 #include "views/controls/scroll_view.h" 22 #include "views/controls/scroll_view.h"
23 #include "views/widget/root_view.h" 23 #include "views/widget/root_view.h"
24 #include "views/widget/widget_gtk.h" 24 #include "views/widget/widget_gtk.h"
25 25
26 #define SET_STATE(state) SetState(state, __PRETTY_FUNCTION__) 26 #define SET_STATE(state) SetState(state, __PRETTY_FUNCTION__)
27 27
28 namespace { 28 namespace {
29 // Minimum and maximum size of balloon content. 29 // Minimum and maximum size of balloon content.
(...skipping 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 &origin); 868 &origin);
869 return rect.Contains(gfx::Rect(origin, view->bounds().size())); 869 return rect.Contains(gfx::Rect(origin, view->bounds().size()));
870 } 870 }
871 871
872 872
873 bool NotificationPanelTester::IsActive(const BalloonViewImpl* view) const { 873 bool NotificationPanelTester::IsActive(const BalloonViewImpl* view) const {
874 return panel_->active_ == view; 874 return panel_->active_ == view;
875 } 875 }
876 876
877 } // namespace chromeos 877 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/notifications/balloon_view.cc ('k') | chrome/browser/chromeos/offline/offline_load_page.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698