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

Side by Side Diff: chrome/browser/views/notifications/balloon_view.cc

Issue 3173043: Move theme files in chrome/browser/ into a themes/ subdir. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 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
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 #include "chrome/browser/views/notifications/balloon_view.h" 5 #include "chrome/browser/views/notifications/balloon_view.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
13 #include "chrome/browser/browser_theme_provider.h"
14 #include "chrome/browser/notifications/balloon.h" 13 #include "chrome/browser/notifications/balloon.h"
15 #include "chrome/browser/notifications/balloon_collection.h" 14 #include "chrome/browser/notifications/balloon_collection.h"
16 #include "chrome/browser/notifications/desktop_notification_service.h" 15 #include "chrome/browser/notifications/desktop_notification_service.h"
17 #include "chrome/browser/notifications/notification_options_menu_model.h" 16 #include "chrome/browser/notifications/notification_options_menu_model.h"
18 #include "chrome/browser/profile.h" 17 #include "chrome/browser/profile.h"
19 #include "chrome/browser/renderer_host/render_view_host.h" 18 #include "chrome/browser/renderer_host/render_view_host.h"
20 #include "chrome/browser/renderer_host/render_widget_host_view.h" 19 #include "chrome/browser/renderer_host/render_widget_host_view.h"
20 #include "chrome/browser/themes/browser_theme_provider.h"
21 #include "chrome/browser/views/bubble_border.h" 21 #include "chrome/browser/views/bubble_border.h"
22 #include "chrome/browser/views/notifications/balloon_view_host.h" 22 #include "chrome/browser/views/notifications/balloon_view_host.h"
23 #include "chrome/common/notification_details.h" 23 #include "chrome/common/notification_details.h"
24 #include "chrome/common/notification_source.h" 24 #include "chrome/common/notification_source.h"
25 #include "chrome/common/notification_type.h" 25 #include "chrome/common/notification_type.h"
26 #include "gfx/canvas_skia.h" 26 #include "gfx/canvas_skia.h"
27 #include "gfx/insets.h" 27 #include "gfx/insets.h"
28 #include "gfx/native_widget_types.h" 28 #include "gfx/native_widget_types.h"
29 #include "grit/generated_resources.h" 29 #include "grit/generated_resources.h"
30 #include "grit/theme_resources.h" 30 #include "grit/theme_resources.h"
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
492 NOTREACHED(); 492 NOTREACHED();
493 return; 493 return;
494 } 494 }
495 495
496 // If the renderer process attached to this balloon is disconnected 496 // If the renderer process attached to this balloon is disconnected
497 // (e.g., because of a crash), we want to close the balloon. 497 // (e.g., because of a crash), we want to close the balloon.
498 notification_registrar_.Remove(this, 498 notification_registrar_.Remove(this,
499 NotificationType::NOTIFY_BALLOON_DISCONNECTED, Source<Balloon>(balloon_)); 499 NotificationType::NOTIFY_BALLOON_DISCONNECTED, Source<Balloon>(balloon_));
500 Close(false); 500 Close(false);
501 } 501 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698