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

Unified Diff: ui/views/controls/menu/nested_dispatcher_gtk.cc

Issue 9728002: Removing deprecated GTK-Views code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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/views/controls/menu/nested_dispatcher_gtk.h ('k') | ui/views/controls/native/native_view_host_gtk.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/nested_dispatcher_gtk.cc
diff --git a/ui/views/controls/menu/nested_dispatcher_gtk.cc b/ui/views/controls/menu/nested_dispatcher_gtk.cc
deleted file mode 100644
index d83b9ccadf5c67592511892a393ed33b3666e9e1..0000000000000000000000000000000000000000
--- a/ui/views/controls/menu/nested_dispatcher_gtk.cc
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright (c) 2011 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/views/controls/menu/nested_dispatcher_gtk.h"
-
-namespace views {
-
-NestedDispatcherGtk::NestedDispatcherGtk(MessageLoopForUI::Dispatcher* creator,
- bool allow_nested_task)
- : creator_(creator),
- allow_nested_task_(allow_nested_task) {
-}
-
-bool NestedDispatcherGtk::RunAndSelfDestruct() {
- bool nestable = MessageLoopForUI::current()->NestableTasksAllowed();
- if (allow_nested_task_)
- MessageLoopForUI::current()->SetNestableTasksAllowed(true);
- MessageLoopForUI::current()->RunWithDispatcher(this);
- if (allow_nested_task_)
- MessageLoopForUI::current()->SetNestableTasksAllowed(nestable);
- bool creator_is_deleted = creator_ == NULL;
- delete this;
- return creator_is_deleted;
-}
-
-void NestedDispatcherGtk::CreatorDestroyed() {
- creator_ = NULL;
-}
-
-bool NestedDispatcherGtk::Dispatch(GdkEvent* event) {
- return creator_ && creator_->Dispatch(event);
-}
-
-} // namespace views
« no previous file with comments | « ui/views/controls/menu/nested_dispatcher_gtk.h ('k') | ui/views/controls/native/native_view_host_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698