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

Unified Diff: ui/views/widget/x11_desktop_handler.h

Issue 11369220: Move the desktop aura classes into a desktop subdir to make the gyp simpler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/x11_desktop_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/x11_desktop_handler.h
===================================================================
--- ui/views/widget/x11_desktop_handler.h (revision 167419)
+++ ui/views/widget/x11_desktop_handler.h (working copy)
@@ -1,67 +0,0 @@
-// Copyright (c) 2012 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_WIDGET_X11_DESKTOP_HANDLER_H_
-#define UI_VIEWS_WIDGET_X11_DESKTOP_HANDLER_H_
-
-#include <X11/Xlib.h>
-// Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
-#undef RootWindow
-
-#include "base/message_loop.h"
-#include "ui/aura/env_observer.h"
-#include "ui/base/x/x11_atom_cache.h"
-#include "ui/views/views_export.h"
-
-template <typename T> struct DefaultSingletonTraits;
-
-namespace views {
-
-// A singleton that owns global objects related to the desktop and listens for
-// X11 events on the X11 root window. Destroys itself when aura::Env is
-// deleted.
-class VIEWS_EXPORT X11DesktopHandler
- : public MessageLoop::Dispatcher,
- public aura::EnvObserver {
- public:
- // Returns the singleton handler.
- static X11DesktopHandler* get();
-
- // Sends a request to the window manager to activate |window|.
- void ActivateWindow(::Window window);
-
- // Checks if the current active window is |window|.
- bool IsActiveWindow(::Window window) const;
-
- // Overridden from MessageLoop::Dispatcher:
- virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
-
- // Overridden from aura::EnvObserver:
- virtual void OnWindowInitialized(aura::Window* window) OVERRIDE;
- virtual void OnWillDestroyEnv() OVERRIDE;
-
- private:
- explicit X11DesktopHandler();
- virtual ~X11DesktopHandler();
-
- // Handles changes in activation.
- void OnActiveWindowChanged(::Window window);
-
- // The display and the native X window hosting the root window.
- Display* xdisplay_;
-
- // The native root window.
- ::Window x_root_window_;
-
- // The activated window.
- ::Window current_window_;
-
- ui::X11AtomCache atom_cache_;
-
- DISALLOW_COPY_AND_ASSIGN(X11DesktopHandler);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_WIDGET_X11_DESKTOP_HANDLER_H_
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/x11_desktop_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698