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

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

Issue 62713003: Move ExtensionProcessManager to src/extensions, part 4 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 1 month 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/debug/trace_event.h" 13 #include "base/debug/trace_event.h"
14 #include "base/message_loop/message_loop.h" 14 #include "base/message_loop/message_loop.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/extensions/extension_host.h" 17 #include "chrome/browser/extensions/extension_host.h"
18 #include "chrome/browser/extensions/extension_process_manager.h"
19 #include "chrome/browser/notifications/balloon.h" 18 #include "chrome/browser/notifications/balloon.h"
20 #include "chrome/browser/notifications/desktop_notification_service.h" 19 #include "chrome/browser/notifications/desktop_notification_service.h"
21 #include "chrome/browser/notifications/notification.h" 20 #include "chrome/browser/notifications/notification.h"
22 #include "chrome/browser/notifications/notification_options_menu_model.h" 21 #include "chrome/browser/notifications/notification_options_menu_model.h"
23 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
24 #include "chrome/browser/themes/theme_service.h" 23 #include "chrome/browser/themes/theme_service.h"
25 #include "chrome/browser/ui/browser_list.h" 24 #include "chrome/browser/ui/browser_list.h"
26 #include "chrome/browser/ui/browser_window.h" 25 #include "chrome/browser/ui/browser_window.h"
27 #include "chrome/browser/ui/gtk/custom_button.h" 26 #include "chrome/browser/ui/gtk/custom_button.h"
28 #include "chrome/browser/ui/gtk/gtk_theme_service.h" 27 #include "chrome/browser/ui/gtk/gtk_theme_service.h"
29 #include "chrome/browser/ui/gtk/gtk_util.h" 28 #include "chrome/browser/ui/gtk/gtk_util.h"
30 #include "chrome/browser/ui/gtk/menu_gtk.h" 29 #include "chrome/browser/ui/gtk/menu_gtk.h"
31 #include "chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h" 30 #include "chrome/browser/ui/gtk/notifications/balloon_view_host_gtk.h"
32 #include "chrome/browser/ui/gtk/rounded_window.h" 31 #include "chrome/browser/ui/gtk/rounded_window.h"
33 #include "chrome/common/extensions/extension.h" 32 #include "chrome/common/extensions/extension.h"
34 #include "content/public/browser/notification_source.h" 33 #include "content/public/browser/notification_source.h"
35 #include "content/public/browser/render_view_host.h" 34 #include "content/public/browser/render_view_host.h"
36 #include "content/public/browser/render_widget_host_view.h" 35 #include "content/public/browser/render_widget_host_view.h"
37 #include "content/public/browser/web_contents.h" 36 #include "content/public/browser/web_contents.h"
37 #include "extensions/browser/process_manager.h"
38 #include "grit/generated_resources.h" 38 #include "grit/generated_resources.h"
39 #include "grit/theme_resources.h" 39 #include "grit/theme_resources.h"
40 #include "ui/base/gtk/gtk_hig_constants.h" 40 #include "ui/base/gtk/gtk_hig_constants.h"
41 #include "ui/base/l10n/l10n_util.h" 41 #include "ui/base/l10n/l10n_util.h"
42 #include "ui/base/resource/resource_bundle.h" 42 #include "ui/base/resource/resource_bundle.h"
43 #include "ui/gfx/animation/slide_animation.h" 43 #include "ui/gfx/animation/slide_animation.h"
44 #include "ui/gfx/canvas.h" 44 #include "ui/gfx/canvas.h"
45 #include "ui/gfx/insets.h" 45 #include "ui/gfx/insets.h"
46 #include "ui/gfx/native_widget_types.h" 46 #include "ui/gfx/native_widget_types.h"
47 47
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 base::Bind( 465 base::Bind(
466 &BalloonViewImpl::DelayedClose, weak_factory_.GetWeakPtr(), false)); 466 &BalloonViewImpl::DelayedClose, weak_factory_.GetWeakPtr(), false));
467 } 467 }
468 } 468 }
469 469
470 gboolean BalloonViewImpl::OnDestroy(GtkWidget* widget) { 470 gboolean BalloonViewImpl::OnDestroy(GtkWidget* widget) {
471 frame_container_ = NULL; 471 frame_container_ = NULL;
472 Close(false); 472 Close(false);
473 return FALSE; // Propagate. 473 return FALSE; // Propagate.
474 } 474 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698