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

Unified Diff: ui/views/mus/platform_window_mus.h

Issue 2009853002: Finish eliminating PlatformWindowMus (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: From wth->SetBounds to observer on OnWindowBoundsChanging Created 4 years, 7 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/views/mus/platform_window_mus.h
diff --git a/ui/views/mus/platform_window_mus.h b/ui/views/mus/platform_window_mus.h
deleted file mode 100644
index c17b9c80b042ebc12357fdffd34fc16fd36c3c2c..0000000000000000000000000000000000000000
--- a/ui/views/mus/platform_window_mus.h
+++ /dev/null
@@ -1,80 +0,0 @@
-// Copyright 2015 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_MUS_PLATFORM_WINDOW_MUS_H_
-#define UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_
-
-#include <stdint.h>
-
-#include <string>
-#include <vector>
-
-#include "base/macros.h"
-#include "components/mus/public/cpp/window_observer.h"
-#include "ui/platform_window/platform_window.h"
-#include "ui/views/mus/mus_export.h"
-
-namespace bitmap_uploader {
-class BitmapUploader;
-}
-
-namespace shell {
-class Connector;
-}
-
-namespace ui {
-class ViewProp;
-}
-
-namespace views {
-
-// This class has been marked for deletion. Its implementation is being rolled
-// into views::NativeWidgetMus. See crbug.com/609555 for details.
-class VIEWS_MUS_EXPORT PlatformWindowMus
- : public NON_EXPORTED_BASE(ui::PlatformWindow) {
- public:
- PlatformWindowMus(ui::PlatformWindowDelegate* delegate,
- shell::Connector* connector,
- mus::Window* mus_window);
- ~PlatformWindowMus() override;
-
- // ui::PlatformWindow:
- void Show() override;
- void Hide() override;
- void Close() override;
- void SetBounds(const gfx::Rect& bounds) override;
- gfx::Rect GetBounds() override;
- void SetTitle(const base::string16& title) override;
- void SetCapture() override;
- void ReleaseCapture() override;
- void ToggleFullscreen() override;
- void Maximize() override;
- void Minimize() override;
- void Restore() override;
- void SetCursor(ui::PlatformCursor cursor) override;
- void MoveCursorTo(const gfx::Point& location) override;
- void ConfineCursorToBounds(const gfx::Rect& bounds) override;
- ui::PlatformImeController* GetPlatformImeController() override;
-
- private:
- friend class PlatformWindowMusTest;
-
- ui::PlatformWindowDelegate* delegate_;
- mus::Window* mus_window_;
-
- // True if OnWindowDestroyed() has been received.
- bool mus_window_destroyed_;
-
- std::unique_ptr<bitmap_uploader::BitmapUploader> bitmap_uploader_;
- std::unique_ptr<ui::ViewProp> prop_;
-#ifndef NDEBUG
- std::unique_ptr<base::WeakPtrFactory<PlatformWindowMus>> weak_factory_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(PlatformWindowMus);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_MUS_PLATFORM_WINDOW_MUS_H_

Powered by Google App Engine
This is Rietveld 408576698