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

Unified Diff: ui/message_center/views/popup_alignment_delegate.cc

Issue 369573004: Separate the logic of popup alignment and workarea handling as delegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 years, 5 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
« no previous file with comments | « ui/message_center/views/popup_alignment_delegate.h ('k') | ui/message_center/views/toast_contents_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/message_center/views/popup_alignment_delegate.cc
diff --git a/ui/message_center/views/popup_alignment_delegate.cc b/ui/message_center/views/popup_alignment_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..9563637705710de1d2e10c520404d930ccf9c21c
--- /dev/null
+++ b/ui/message_center/views/popup_alignment_delegate.cc
@@ -0,0 +1,20 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ui/message_center/views/popup_alignment_delegate.h"
+
+#include "ui/message_center/views/message_popup_collection.h"
+
+namespace message_center {
+
+PopupAlignmentDelegate::PopupAlignmentDelegate() : collection_(NULL) {}
+
+PopupAlignmentDelegate::~PopupAlignmentDelegate() {}
+
+void PopupAlignmentDelegate::DoUpdateIfPossible() {
+ if (collection_)
+ collection_->DoUpdateIfPossible();
+}
+
+} // namespace message_center
« no previous file with comments | « ui/message_center/views/popup_alignment_delegate.h ('k') | ui/message_center/views/toast_contents_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698