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

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

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/native_menu_gtk.cc ('k') | ui/views/controls/menu/nested_dispatcher_gtk.cc » ('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.h
diff --git a/ui/views/controls/menu/nested_dispatcher_gtk.h b/ui/views/controls/menu/nested_dispatcher_gtk.h
deleted file mode 100644
index dc02f369e61c88d23f86edabd8e218d098e77b2f..0000000000000000000000000000000000000000
--- a/ui/views/controls/menu/nested_dispatcher_gtk.h
+++ /dev/null
@@ -1,51 +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.
-
-#ifndef UI_VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_
-#define UI_VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_
-#pragma once
-
-#include "base/compiler_specific.h"
-#include "base/message_loop.h"
-
-namespace views {
-
-// A nested dispatcher that can out-live the creator of this
-// dispatcher. This is to deal with the scenario where a menu object
-// is deleted while it's handling the message loop. Note that
-// |RunAndSelfDestruct| method always delete itself regardless of
-// whether or not the menu object is deleted, so a menu object should
-// create a new instance for each open request.
-// http://crosbug.com/7228, http://crosbug.com/7929
-class NestedDispatcherGtk : public MessageLoopForUI::Dispatcher {
- public:
- NestedDispatcherGtk(MessageLoopForUI::Dispatcher* creator,
- bool allow_nested_task);
-
- // Run the messsage loop and returns if the menu has been
- // deleted in the nested loop. Returns true if the menu is
- // deleted, or false otherwise.
- bool RunAndSelfDestruct();
-
- // Tells the nested dispatcher that creator has been destroyed.
- void CreatorDestroyed();
-
- private:
- virtual ~NestedDispatcherGtk() {}
-
- // Overriden from MessageLoopForUI::Dispatcher:
- virtual bool Dispatch(GdkEvent* event) OVERRIDE;
-
- // Creator of the nested loop.
- MessageLoopForUI::Dispatcher* creator_;
-
- // True to allow nested task in the message loop.
- bool allow_nested_task_;
-
- DISALLOW_COPY_AND_ASSIGN(NestedDispatcherGtk);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_MENU_NESTED_DISPATCHER_GTK_H_
« no previous file with comments | « ui/views/controls/menu/native_menu_gtk.cc ('k') | ui/views/controls/menu/nested_dispatcher_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698