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

Unified Diff: cc/input/layer_scroll_offset_delegate.h

Issue 1057283003: Remove parts of //cc we aren't using (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/input/input_handler.cc ('k') | cc/input/layer_selection_bound.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/input/layer_scroll_offset_delegate.h
diff --git a/cc/input/layer_scroll_offset_delegate.h b/cc/input/layer_scroll_offset_delegate.h
deleted file mode 100644
index 02ba011118dfb5621bf3a53c482b8ae8c1a40e67..0000000000000000000000000000000000000000
--- a/cc/input/layer_scroll_offset_delegate.h
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright 2013 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 CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_
-#define CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_
-
-#include "base/basictypes.h"
-#include "ui/gfx/geometry/scroll_offset.h"
-#include "ui/gfx/geometry/size_f.h"
-
-namespace cc {
-
-// The LayerScrollOffsetDelegate allows for the embedder to take ownership of
-// the scroll offset of the root layer.
-//
-// The LayerScrollOffsetDelegate is only used on the impl thread.
-class LayerScrollOffsetDelegate {
- public:
- // This is called by the compositor to query the current scroll offset of the
- // layer.
- // There is no requirement that the return values of this method are
- // stable in time (two subsequent calls may yield different results).
- // The return value is not required to be related to the values passed in to
- // the SetTotalScrollOffset method in any way however it is required to be no
- // more than the value passed to the most recent SetMaxScrollOffset call.
- virtual gfx::ScrollOffset GetTotalScrollOffset() = 0;
-
- // This is called by the compositor to notify the delegate of any change to
- // the following parameters:
- // |total_scroll_offset| current scroll offset of the root layer,
- // |max_scroll_offset| total scroll offset upper bound for the root layer,
- // |scrollable_size| root layer scrollable size,
- // |page_scale_factor| current page scale,
- // |min_page_scale_factor| page scale lower limit,
- // |max_page_scale_factor| page scale upper limit.
- virtual void UpdateRootLayerState(
- const gfx::ScrollOffset& total_scroll_offset,
- const gfx::ScrollOffset& max_scroll_offset,
- const gfx::SizeF& scrollable_size,
- float page_scale_factor,
- float min_page_scale_factor,
- float max_page_scale_factor) = 0;
-
- // This is called by the compositor to check whether a delegate-managed fling
- // is active or not.
- virtual bool IsExternalFlingActive() const = 0;
-
- protected:
- LayerScrollOffsetDelegate() {}
- virtual ~LayerScrollOffsetDelegate() {}
-
- private:
- DISALLOW_COPY_AND_ASSIGN(LayerScrollOffsetDelegate);
-};
-
-} // namespace cc
-
-#endif // CC_INPUT_LAYER_SCROLL_OFFSET_DELEGATE_H_
« no previous file with comments | « cc/input/input_handler.cc ('k') | cc/input/layer_selection_bound.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698