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

Unified Diff: mash/wm/non_client_frame_view_impl.h

Issue 1459653002: Gets mustash frames looking like that of ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update test Created 5 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 | « mash/wm/non_client_frame_controller.cc ('k') | mash/wm/non_client_frame_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/non_client_frame_view_impl.h
diff --git a/mash/wm/non_client_frame_view_impl.h b/mash/wm/non_client_frame_view_impl.h
deleted file mode 100644
index e7e3eef8cc25bd97d0249ce7529a55a4ded35711..0000000000000000000000000000000000000000
--- a/mash/wm/non_client_frame_view_impl.h
+++ /dev/null
@@ -1,49 +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 MASH_WM_NON_CLIENT_FRAME_VIEW_IMPL_H_
-#define MASH_WM_NON_CLIENT_FRAME_VIEW_IMPL_H_
-
-#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
-#include "components/mus/public/cpp/window_observer.h"
-#include "ui/compositor/paint_cache.h"
-#include "ui/views/window/custom_frame_view.h"
-
-class MoveLoop;
-
-class NonClientFrameViewImpl : public views::CustomFrameView,
- public mus::WindowObserver {
- public:
- explicit NonClientFrameViewImpl(mus::Window* window);
- ~NonClientFrameViewImpl() override;
-
- private:
- // CustomFrameView:
- gfx::Rect GetBoundsForClientView() const override;
- void OnPaint(gfx::Canvas* canvas) override;
- void PaintChildren(const ui::PaintContext& context) override;
- bool OnMousePressed(const ui::MouseEvent& event) override;
- bool OnMouseDragged(const ui::MouseEvent& event) override;
- void OnMouseReleased(const ui::MouseEvent& event) override;
- void OnMouseCaptureLost() override;
-
- // mus::WindowObserver:
- void OnWindowClientAreaChanged(mus::Window* window,
- const gfx::Insets& old_client_area) override;
- void OnWindowDestroyed(mus::Window* window) override;
-
- private:
- bool StartMoveLoopIfNecessary(const ui::Event& event);
- void ContinueMove(const ui::Event& event);
- void StopMove();
-
- mus::Window* window_;
- ui::PaintCache paint_cache_;
- scoped_ptr<MoveLoop> move_loop_;
-
- DISALLOW_COPY_AND_ASSIGN(NonClientFrameViewImpl);
-};
-
-#endif // MASH_WM_NON_CLIENT_FRAME_VIEW_IMPL_H_
« no previous file with comments | « mash/wm/non_client_frame_controller.cc ('k') | mash/wm/non_client_frame_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698