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

Side by Side Diff: ash/wm/workspace/workspace_window_resizer.h

Issue 9597021: Adds OVERRIDE. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 5 #ifndef ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 6 #define ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/wm/window_resizer.h" 9 #include "ash/wm/window_resizer.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 21 matching lines...) Expand all
32 int grid_size); 32 int grid_size);
33 33
34 // Returns true if the drag will result in changing the window in anyway. 34 // Returns true if the drag will result in changing the window in anyway.
35 bool is_resizable() const { return details_.is_resizable; } 35 bool is_resizable() const { return details_.is_resizable; }
36 36
37 const gfx::Point& initial_location_in_parent() const { 37 const gfx::Point& initial_location_in_parent() const {
38 return details_.initial_location_in_parent; 38 return details_.initial_location_in_parent;
39 } 39 }
40 40
41 // Overridden from WindowResizer: 41 // Overridden from WindowResizer:
42 virtual void Drag(const gfx::Point& location); 42 virtual void Drag(const gfx::Point& location) OVERRIDE;
43 virtual void CompleteDrag(); 43 virtual void CompleteDrag() OVERRIDE;
44 virtual void RevertDrag(); 44 virtual void RevertDrag() OVERRIDE;
45 45
46 private: 46 private:
47 explicit WorkspaceWindowResizer(const Details& details); 47 explicit WorkspaceWindowResizer(const Details& details);
48 48
49 // Adjusts the bounds to enforce that windows are vertically contained in the 49 // Adjusts the bounds to enforce that windows are vertically contained in the
50 // work area. 50 // work area.
51 void AdjustBoundsForMainWindow(gfx::Rect* bounds) const; 51 void AdjustBoundsForMainWindow(gfx::Rect* bounds) const;
52 void AdjustBoundsForWindow(const gfx::Rect& work_area, 52 void AdjustBoundsForWindow(const gfx::Rect& work_area,
53 aura::Window* window, 53 aura::Window* window,
54 gfx::Rect* bounds) const; 54 gfx::Rect* bounds) const;
(...skipping 16 matching lines...) Expand all
71 71
72 internal::RootWindowEventFilter* root_filter_; 72 internal::RootWindowEventFilter* root_filter_;
73 73
74 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer); 74 DISALLOW_COPY_AND_ASSIGN(WorkspaceWindowResizer);
75 }; 75 };
76 76
77 } // namespace internal 77 } // namespace internal
78 } // namespace ash 78 } // namespace ash
79 79
80 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_ 80 #endif // ASH_WM_WORKSPACE_WINDOW_RESIZER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698