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

Unified Diff: ui/views/widget/x11_desktop_window_move_client.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_handler.cc ('k') | ui/views/widget/x11_desktop_window_move_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/widget/x11_desktop_window_move_client.h
===================================================================
--- ui/views/widget/x11_desktop_window_move_client.h (revision 167419)
+++ ui/views/widget/x11_desktop_window_move_client.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_WINDOW_MOVE_CLIENT_H_
-#define UI_VIEWS_WIDGET_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_
-
-#include <X11/Xlib.h>
-
-// Get rid of a macro from Xlib.h that conflicts with Aura's RootWindow class.
-#undef RootWindow
-
-#include "base/callback.h"
-#include "base/compiler_specific.h"
-#include "base/message_loop.h"
-#include "ui/aura/client/window_move_client.h"
-#include "ui/aura/event_filter.h"
-#include "ui/views/views_export.h"
-#include "ui/gfx/point.h"
-
-namespace aura {
-class RootWindow;
-}
-
-namespace views {
-
-// When we're dragging tabs, we need to manually position our window.
-class VIEWS_EXPORT X11DesktopWindowMoveClient
- : public MessageLoop::Dispatcher,
- public aura::client::WindowMoveClient {
- public:
- X11DesktopWindowMoveClient();
- virtual ~X11DesktopWindowMoveClient();
-
- // Overridden from MessageLoop::Dispatcher:
- virtual bool Dispatch(const base::NativeEvent& event) OVERRIDE;
-
- // Overridden from aura::client::WindowMoveClient:
- virtual aura::client::WindowMoveResult RunMoveLoop(
- aura::Window* window,
- const gfx::Vector2d& drag_offset) OVERRIDE;
- virtual void EndMoveLoop() OVERRIDE;
-
- private:
- // Are we running a nested message loop from RunMoveLoop()?
- bool in_move_loop_;
-
- // An invisible InputOnly window . We create this window so we can track the
- // cursor wherever it goes on screen during a drag, since normal windows
- // don't receive pointer motion events outside of their bounds.
- ::Window grab_input_window_;
-
- // We need to keep track of this so we can actually move it when reacting to
- // events from |grab_input_window_| during Dispatch().
- aura::RootWindow* root_window_;
-
- // Our cursor offset from the top left window origin when the drag
- // started. Used to calculate the window's new bounds relative to the current
- // location of the cursor.
- gfx::Vector2d window_offset_;
-
- base::Closure quit_closure_;
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_WIDGET_X11_DESKTOP_WINDOW_MOVE_CLIENT_H_
« no previous file with comments | « ui/views/widget/x11_desktop_handler.cc ('k') | ui/views/widget/x11_desktop_window_move_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698