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

Unified Diff: ui/ozone/platform/dri/dri_window_manager.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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/ozone/platform/dri/dri_window_delegate_manager.cc ('k') | ui/ozone/platform/dri/dri_window_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/dri/dri_window_manager.h
diff --git a/ui/ozone/platform/dri/dri_window_manager.h b/ui/ozone/platform/dri/dri_window_manager.h
deleted file mode 100644
index 5a03957b8cfcba18cf7c7a0841b5c844d3e2ab45..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/dri_window_manager.h
+++ /dev/null
@@ -1,58 +0,0 @@
-// Copyright 2014 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_OZONE_PLATFORM_DRI_DRI_WINDOW_MANAGER_H_
-#define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_MANAGER_H_
-
-#include <map>
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace ui {
-
-class DriCursor;
-class DriWindow;
-class HardwareCursorDelegate;
-
-// Responsible for keeping the mapping between the allocated widgets and
-// windows.
-class DriWindowManager {
- public:
- explicit DriWindowManager(HardwareCursorDelegate* cursor_delegate);
- ~DriWindowManager();
-
- gfx::AcceleratedWidget NextAcceleratedWidget();
-
- // Adds a window for |widget|. Note: |widget| should not be associated when
- // calling this function.
- void AddWindow(gfx::AcceleratedWidget widget, DriWindow* window);
-
- // Removes the window association for |widget|. Note: |widget| must be
- // associated with a window when calling this function.
- void RemoveWindow(gfx::AcceleratedWidget widget);
-
- // Returns the window associated with |widget|. Note: This function should
- // only be called if a valid window has been associated.
- DriWindow* GetWindow(gfx::AcceleratedWidget widget);
-
- DriCursor* cursor() const { return cursor_.get(); }
-
- private:
- // Reset the cursor location based on the list of active windows.
- void ResetCursorLocation();
-
- typedef std::map<gfx::AcceleratedWidget, DriWindow*> WidgetToWindowMap;
-
- gfx::AcceleratedWidget last_allocated_widget_;
- WidgetToWindowMap window_map_;
-
- scoped_ptr<DriCursor> cursor_;
-
- DISALLOW_COPY_AND_ASSIGN(DriWindowManager);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_MANAGER_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_manager.cc ('k') | ui/ozone/platform/dri/dri_window_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698