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

Unified Diff: ui/views/widget/x11_window_event_filter.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/x11_desktop_window_move_client.cc ('k') | ui/views/widget/x11_window_event_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/x11_window_event_filter.h
===================================================================
--- ui/views/widget/x11_window_event_filter.h (revision 167419)
+++ ui/views/widget/x11_window_event_filter.h (working copy)
@@ -1,78 +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_WINDOW_EVENT_FILTER_H_
-#define UI_VIEWS_WIDGET_X11_WINDOW_EVENT_FILTER_H_
-
-#include <X11/Xlib.h>
-// Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
-#undef RootWindow
-
-#include "base/compiler_specific.h"
-#include "base/message_loop.h"
-#include "ui/aura/event_filter.h"
-#include "ui/base/x/x11_atom_cache.h"
-#include "ui/views/views_export.h"
-
-namespace aura {
-class RootWindow;
-class Window;
-}
-
-namespace gfx {
-class Point;
-}
-
-namespace views {
-class DesktopActivationClient;
-class NativeWidgetAura;
-
-// An EventFilter that sets properties on X11 windows.
-class VIEWS_EXPORT X11WindowEventFilter : public aura::EventFilter {
- public:
- explicit X11WindowEventFilter(aura::RootWindow* root_window,
- DesktopActivationClient* activation_client);
- virtual ~X11WindowEventFilter();
-
- // Changes whether borders are shown on this |root_window|.
- void SetUseHostWindowBorders(bool use_os_border);
-
- // Overridden from EventFilter:
- virtual bool PreHandleKeyEvent(aura::Window* target,
- ui::KeyEvent* event) OVERRIDE;
- virtual bool PreHandleMouseEvent(aura::Window* target,
- ui::MouseEvent* event) OVERRIDE;
- virtual ui::EventResult PreHandleTouchEvent(
- aura::Window* target,
- ui::TouchEvent* event) OVERRIDE;
- virtual ui::EventResult PreHandleGestureEvent(
- aura::Window* target,
- ui::GestureEvent* event) OVERRIDE;
-
- private:
- // Dispatches a _NET_WM_MOVERESIZE message to the window manager to tell it
- // to act as if a border or titlebar drag occurred.
- bool DispatchHostWindowDragMovement(int hittest,
- const gfx::Point& screen_location);
-
- DesktopActivationClient* activation_client_;
-
- // The display and the native X window hosting the root window.
- Display* xdisplay_;
- ::Window xwindow_;
-
- // The native root window.
- ::Window x_root_window_;
-
- ui::X11AtomCache atom_cache_;
-
- // True if |xwindow_| is the current _NET_ACTIVE_WINDOW.
- bool is_active_;
-
- DISALLOW_COPY_AND_ASSIGN(X11WindowEventFilter);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_WIDGET_X11_WINDOW_EVENT_FILTER_H_
« no previous file with comments | « ui/views/widget/x11_desktop_window_move_client.cc ('k') | ui/views/widget/x11_window_event_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698