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

Side by Side Diff: cc/input/browser_controls_offset_manager.h

Issue 2503283002: cc: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing fwd class decl in blimp_embedder_compositor.h Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_ 5 #ifndef CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_
6 #define CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_ 6 #define CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "base/time/time.h" 12 #include "base/time/time.h"
13 #include "cc/input/browser_controls_state.h" 13 #include "cc/input/browser_controls_state.h"
14 #include "cc/layers/layer_impl.h" 14 #include "cc/layers/layer_impl.h"
15 #include "ui/gfx/geometry/size.h" 15 #include "ui/gfx/geometry/size.h"
16 #include "ui/gfx/geometry/vector2d_f.h" 16 #include "ui/gfx/geometry/vector2d_f.h"
17 17
18 namespace cc { 18 namespace cc {
19 19
20 class LayerTreeImpl;
21 class BrowserControlsOffsetManagerClient; 20 class BrowserControlsOffsetManagerClient;
22 21
23 // Manages the position of the browser controls. 22 // Manages the position of the browser controls.
24 class CC_EXPORT BrowserControlsOffsetManager 23 class CC_EXPORT BrowserControlsOffsetManager
25 : public base::SupportsWeakPtr<BrowserControlsOffsetManager> { 24 : public base::SupportsWeakPtr<BrowserControlsOffsetManager> {
26 public: 25 public:
27 enum AnimationDirection { NO_ANIMATION, SHOWING_CONTROLS, HIDING_CONTROLS }; 26 enum AnimationDirection { NO_ANIMATION, SHOWING_CONTROLS, HIDING_CONTROLS };
28 27
29 static std::unique_ptr<BrowserControlsOffsetManager> Create( 28 static std::unique_ptr<BrowserControlsOffsetManager> Create(
30 BrowserControlsOffsetManagerClient* client, 29 BrowserControlsOffsetManagerClient* client,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 float controls_hide_threshold_; 107 float controls_hide_threshold_;
109 108
110 bool pinch_gesture_active_; 109 bool pinch_gesture_active_;
111 110
112 DISALLOW_COPY_AND_ASSIGN(BrowserControlsOffsetManager); 111 DISALLOW_COPY_AND_ASSIGN(BrowserControlsOffsetManager);
113 }; 112 };
114 113
115 } // namespace cc 114 } // namespace cc
116 115
117 #endif // CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_ 116 #endif // CC_INPUT_BROWSER_CONTROLS_OFFSET_MANAGER_H_
OLDNEW
« no previous file with comments | « cc/debug/rasterize_and_record_benchmark_impl.h ('k') | cc/input/browser_controls_offset_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698