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

Unified Diff: ui/ozone/platform/dri/dri_window_delegate_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
Index: ui/ozone/platform/dri/dri_window_delegate_manager.h
diff --git a/ui/ozone/platform/dri/dri_window_delegate_manager.h b/ui/ozone/platform/dri/dri_window_delegate_manager.h
deleted file mode 100644
index 5f2a572c49e4b738ea4d50154dead4a53fdc564c..0000000000000000000000000000000000000000
--- a/ui/ozone/platform/dri/dri_window_delegate_manager.h
+++ /dev/null
@@ -1,48 +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_DELEGATE_MANAGER_H_
-#define UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_
-
-#include "base/containers/scoped_ptr_hash_map.h"
-#include "ui/gfx/native_widget_types.h"
-
-namespace ui {
-
-class DriWindowDelegate;
-
-class DriWindowDelegateManager {
- public:
- DriWindowDelegateManager();
- ~DriWindowDelegateManager();
-
- // Adds a delegate for |widget|. Note: |widget| should not be associated with
- // a delegate when calling this function.
- void AddWindowDelegate(gfx::AcceleratedWidget widget,
- scoped_ptr<DriWindowDelegate> surface);
-
- // Removes the delegate for |widget|. Note: |widget| must have a delegate
- // associated with it when calling this function.
- scoped_ptr<DriWindowDelegate> RemoveWindowDelegate(
- gfx::AcceleratedWidget widget);
-
- // Returns the delegate associated with |widget|. Note: This function should
- // be called only if a valid delegate has been associated with |widget|.
- DriWindowDelegate* GetWindowDelegate(gfx::AcceleratedWidget widget);
-
- // Check if |widget| has a valid delegate associated with it.
- bool HasWindowDelegate(gfx::AcceleratedWidget widget);
-
- private:
- typedef base::ScopedPtrHashMap<gfx::AcceleratedWidget, DriWindowDelegate>
- WidgetToDelegateMap;
-
- WidgetToDelegateMap delegate_map_;
-
- DISALLOW_COPY_AND_ASSIGN(DriWindowDelegateManager);
-};
-
-} // namespace ui
-
-#endif // UI_OZONE_PLATFORM_DRI_DRI_WINDOW_DELEGATE_MANAGER_H_
« no previous file with comments | « ui/ozone/platform/dri/dri_window_delegate_impl.cc ('k') | ui/ozone/platform/dri/dri_window_delegate_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698