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

Side by Side Diff: chrome/browser/ui/gtk/notifications/balloon_view_gtk.cc

Issue 8342048: Make NotificationService an interface in the content namespace, and switch callers to use it. Mov... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 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 #include "chrome/browser/ui/gtk/notifications/balloon_view_gtk.h" 5 #include "chrome/browser/ui/gtk/notifications/balloon_view_gtk.h"
6 6
7 #include <gtk/gtk.h> 7 #include <gtk/gtk.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/ui/gtk/custom_button.h" 25 #include "chrome/browser/ui/gtk/custom_button.h"
26 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 26 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
27 #include "chrome/browser/ui/gtk/gtk_util.h" 27 #include "chrome/browser/ui/gtk/gtk_util.h"
28 #include "chrome/browser/ui/gtk/menu_gtk.h" 28 #include "chrome/browser/ui/gtk/menu_gtk.h"
29 #include "chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h" 29 #include "chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h"
30 #include "chrome/browser/ui/gtk/rounded_window.h" 30 #include "chrome/browser/ui/gtk/rounded_window.h"
31 #include "chrome/common/chrome_notification_types.h" 31 #include "chrome/common/chrome_notification_types.h"
32 #include "chrome/common/extensions/extension.h" 32 #include "chrome/common/extensions/extension.h"
33 #include "content/browser/renderer_host/render_view_host.h" 33 #include "content/browser/renderer_host/render_view_host.h"
34 #include "content/browser/renderer_host/render_widget_host_view.h" 34 #include "content/browser/renderer_host/render_widget_host_view.h"
35 #include "content/common/notification_service.h"
36 #include "content/public/browser/notification_details.h"
37 #include "content/public/browser/notification_source.h" 35 #include "content/public/browser/notification_source.h"
38 #include "grit/generated_resources.h" 36 #include "grit/generated_resources.h"
39 #include "grit/theme_resources.h" 37 #include "grit/theme_resources.h"
40 #include "grit/theme_resources_standard.h" 38 #include "grit/theme_resources_standard.h"
41 #include "ui/base/animation/slide_animation.h" 39 #include "ui/base/animation/slide_animation.h"
42 #include "ui/base/gtk/gtk_hig_constants.h" 40 #include "ui/base/gtk/gtk_hig_constants.h"
43 #include "ui/base/l10n/l10n_util.h" 41 #include "ui/base/l10n/l10n_util.h"
44 #include "ui/base/resource/resource_bundle.h" 42 #include "ui/base/resource/resource_bundle.h"
45 #include "ui/gfx/canvas.h" 43 #include "ui/gfx/canvas.h"
46 #include "ui/gfx/insets.h" 44 #include "ui/gfx/insets.h"
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
476 weak_factory_.GetWeakPtr(), 474 weak_factory_.GetWeakPtr(),
477 false)); 475 false));
478 } 476 }
479 } 477 }
480 478
481 gboolean BalloonViewImpl::OnDestroy(GtkWidget* widget) { 479 gboolean BalloonViewImpl::OnDestroy(GtkWidget* widget) {
482 frame_container_ = NULL; 480 frame_container_ = NULL;
483 Close(false); 481 Close(false);
484 return FALSE; // Propagate. 482 return FALSE; // Propagate.
485 } 483 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/location_bar_view_gtk.cc ('k') | chrome/browser/ui/gtk/omnibox/omnibox_popup_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698