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

Unified Diff: views/controls/resize_area.h

Issue 8687031: views: Move the remaining files to ui/views/controls/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | « views/controls/progress_bar_unittest.cc ('k') | views/controls/resize_area.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/controls/resize_area.h
diff --git a/views/controls/resize_area.h b/views/controls/resize_area.h
deleted file mode 100644
index 3f06a1e0b45b9c9baf8d7daaf4cc4cd3db200a96..0000000000000000000000000000000000000000
--- a/views/controls/resize_area.h
+++ /dev/null
@@ -1,54 +0,0 @@
-// Copyright (c) 2011 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 VIEWS_CONTROLS_RESIZE_AREA_H_
-#define VIEWS_CONTROLS_RESIZE_AREA_H_
-#pragma once
-
-#include <string>
-
-#include "views/view.h"
-
-namespace views {
-
-class ResizeAreaDelegate;
-
-////////////////////////////////////////////////////////////////////////////////
-//
-// An invisible area that acts like a horizontal resizer.
-//
-////////////////////////////////////////////////////////////////////////////////
-class VIEWS_EXPORT ResizeArea : public View {
- public:
- static const char kViewClassName[];
-
- explicit ResizeArea(ResizeAreaDelegate* delegate);
- virtual ~ResizeArea();
-
- // Overridden from views::View:
- virtual std::string GetClassName() const OVERRIDE;
- virtual gfx::NativeCursor GetCursor(const views::MouseEvent& event) OVERRIDE;
- virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE;
- virtual bool OnMouseDragged(const views::MouseEvent& event) OVERRIDE;
- virtual void OnMouseReleased(const views::MouseEvent& event) OVERRIDE;
- virtual void OnMouseCaptureLost() OVERRIDE;
- virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
-
- private:
- // Report the amount the user resized by to the delegate, accounting for
- // directionality.
- void ReportResizeAmount(int resize_amount, bool last_update);
-
- // The delegate to notify when we have updates.
- ResizeAreaDelegate* delegate_;
-
- // The mouse position at start (in screen coordinates).
- int initial_position_;
-
- DISALLOW_COPY_AND_ASSIGN(ResizeArea);
-};
-
-} // namespace views
-
-#endif // VIEWS_CONTROLS_RESIZE_AREA_H_
« no previous file with comments | « views/controls/progress_bar_unittest.cc ('k') | views/controls/resize_area.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698