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

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

Issue 5854003: Remove CrOS hack from ppapi.gyp that made the include directories work. This... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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) 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" 12 #include "app/resource_bundle.h"
13 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h" 13 #include "chrome/browser/chromeos/notifications/balloon_collection_impl.h"
14 #include "chrome/browser/chromeos/notifications/balloon_view.h" 14 #include "chrome/browser/chromeos/notifications/balloon_view.h"
15 #include "chrome/common/notification_details.h" 15 #include "chrome/common/notification_details.h"
16 #include "chrome/common/notification_source.h" 16 #include "chrome/common/notification_source.h"
17 #include "cros/chromeos_wm_ipc_enums.h"
18 #include "gfx/canvas.h" 17 #include "gfx/canvas.h"
19 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
19 #include "third_party/cros/chromeos_wm_ipc_enums.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 834 matching lines...) Expand 10 before | Expand all | Expand 10 after
864 &origin); 864 &origin);
865 return rect.Contains(gfx::Rect(origin, view->bounds().size())); 865 return rect.Contains(gfx::Rect(origin, view->bounds().size()));
866 } 866 }
867 867
868 868
869 bool NotificationPanelTester::IsActive(const BalloonViewImpl* view) const { 869 bool NotificationPanelTester::IsActive(const BalloonViewImpl* view) const {
870 return panel_->active_ == view; 870 return panel_->active_ == view;
871 } 871 }
872 872
873 } // namespace chromeos 873 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/wizard_controller.cc ('k') | chrome/browser/chromeos/options/language_config_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698