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

Side by Side Diff: ash/wm/resize_shadow.h

Issue 2095193002: clang-format all of //ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « ash/wm/resize_handle_window_targeter.cc ('k') | ash/wm/resize_shadow.cc » ('j') | 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_RESIZE_SHADOW_H_ 5 #ifndef ASH_WM_RESIZE_SHADOW_H_
6 #define ASH_WM_RESIZE_SHADOW_H_ 6 #define ASH_WM_RESIZE_SHADOW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 27 matching lines...) Expand all
38 // Shows resize effects for one or more edges based on a |hit_test| code, such 38 // Shows resize effects for one or more edges based on a |hit_test| code, such
39 // as HTRIGHT or HTBOTTOMRIGHT. 39 // as HTRIGHT or HTBOTTOMRIGHT.
40 void ShowForHitTest(int hit_test); 40 void ShowForHitTest(int hit_test);
41 41
42 // Hides all resize effects. 42 // Hides all resize effects.
43 void Hide(); 43 void Hide();
44 44
45 // Updates the effect positions based on the |bounds| of the window. 45 // Updates the effect positions based on the |bounds| of the window.
46 void Layout(const gfx::Rect& bounds); 46 void Layout(const gfx::Rect& bounds);
47 47
48 int GetLastHitTestForTest() const { 48 int GetLastHitTestForTest() const { return last_hit_test_; }
49 return last_hit_test_;
50 }
51 49
52 private: 50 private:
53 // Images for the shadow effect. 51 // Images for the shadow effect.
54 std::unique_ptr<::wm::ImageGrid> image_grid_; 52 std::unique_ptr<::wm::ImageGrid> image_grid_;
55 53
56 // Hit test value from last call to ShowForHitTest(). Used to prevent 54 // Hit test value from last call to ShowForHitTest(). Used to prevent
57 // repeatedly triggering the same animations for the same hit. 55 // repeatedly triggering the same animations for the same hit.
58 int last_hit_test_; 56 int last_hit_test_;
59 57
60 DISALLOW_COPY_AND_ASSIGN(ResizeShadow); 58 DISALLOW_COPY_AND_ASSIGN(ResizeShadow);
61 }; 59 };
62 60
63 } // namespace ash 61 } // namespace ash
64 62
65 #endif // ASH_WM_RESIZE_SHADOW_H_ 63 #endif // ASH_WM_RESIZE_SHADOW_H_
OLDNEW
« no previous file with comments | « ash/wm/resize_handle_window_targeter.cc ('k') | ash/wm/resize_shadow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698