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

Unified Diff: chrome/browser/ui/panels/panel_browser_window_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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_browser_window_gtk.cc
===================================================================
--- chrome/browser/ui/panels/panel_browser_window_gtk.cc (revision 106380)
+++ chrome/browser/ui/panels/panel_browser_window_gtk.cc (working copy)
@@ -9,7 +9,7 @@
#include "chrome/browser/ui/panels/panel_manager.h"
#include "chrome/browser/ui/panels/panel_settings_menu_model.h"
#include "chrome/common/chrome_notification_types.h"
-#include "content/common/notification_service.h"
+#include "content/public/browser/notification_service.h"
#include "ui/base/animation/slide_animation.h"
#include "ui/base/dragdrop/gtk_dnd_util.h"
@@ -148,10 +148,10 @@
StartBoundsAnimation(gfx::Rect(bounds_.x(), top, width, height));
panel_->OnWindowSizeAvailable();
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PANEL_WINDOW_SIZE_KNOWN,
content::Source<Panel>(panel_.get()),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
bool PanelBrowserWindowGtk::UseCustomFrame() {
@@ -196,10 +196,10 @@
if (was_active == IsActive()) // State didn't change.
return;
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PANEL_CHANGED_ACTIVE_STATUS,
content::Source<Panel>(panel_.get()),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
BrowserWindowGtk::TitleDecoration PanelBrowserWindowGtk::GetWindowTitle(
@@ -428,10 +428,10 @@
}
void PanelBrowserWindowGtk::AnimationEnded(const ui::Animation* animation) {
- NotificationService::current()->Notify(
+ content::NotificationService::current()->Notify(
chrome::NOTIFICATION_PANEL_BOUNDS_ANIMATIONS_FINISHED,
content::Source<Panel>(panel_.get()),
- NotificationService::NoDetails());
+ content::NotificationService::NoDetails());
}
void PanelBrowserWindowGtk::AnimationProgressed(
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view.cc ('k') | chrome/browser/ui/panels/panel_window_controller_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698