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

Unified Diff: ash/wm/overview/window_selector_item.h

Issue 965813003: Removed the "Swipe to close in overview" feature. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « ash/wm/overview/window_selector_controller.cc ('k') | ash/wm/overview/window_selector_item.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/overview/window_selector_item.h
diff --git a/ash/wm/overview/window_selector_item.h b/ash/wm/overview/window_selector_item.h
index 0e4aa8fa1b83de29588c4e50fea66ca7d43068cb..063b141e92a594c728efcd9633144251fd19bc28 100644
--- a/ash/wm/overview/window_selector_item.h
+++ b/ash/wm/overview/window_selector_item.h
@@ -33,25 +33,18 @@ class ASH_EXPORT WindowSelectorItem : public views::ButtonListener,
public:
class OverviewLabelButton : public views::LabelButton {
public:
- OverviewLabelButton(WindowSelectorItem* selector_item,
+ OverviewLabelButton(views::ButtonListener* listener,
const base::string16& text);
~OverviewLabelButton() override;
void set_top_padding(int top_padding) { top_padding_ = top_padding; }
- // views::LabelButton:
- void OnGestureEvent(ui::GestureEvent* event) override;
-
protected:
// views::LabelButton:
gfx::Rect GetChildAreaBounds() override;
private:
- // The WindowSelectorItem that the touch gestures are delegated to.
- // Not owned.
- WindowSelectorItem* selector_item_;
-
// Padding on top of the button.
int top_padding_;
@@ -101,9 +94,6 @@ class ASH_EXPORT WindowSelectorItem : public views::ButtonListener,
const gfx::Rect& target_bounds() const { return target_bounds_; }
- // Handles the gestures on the Window
- void OnGestureEvent(ui::GestureEvent* event);
-
// views::ButtonListener:
void ButtonPressed(views::Button* sender, const ui::Event& event) override;
@@ -137,14 +127,6 @@ class ASH_EXPORT WindowSelectorItem : public views::ButtonListener,
// Updates the close buttons accessibility name.
void UpdateCloseButtonAccessibilityName();
- // Animates the |transform_window_| back to it's original overview mode
- // position.
- void ResetScrolledWindow();
-
- // Returns the minimum distance at which a scroll gesture will cause this
- // selector item to be closed.
- int GetMinimumCloseDistance() const;
-
// True if the item is being shown in the overview, false if it's being
// filtered.
bool dimmed_;
@@ -176,10 +158,6 @@ class ASH_EXPORT WindowSelectorItem : public views::ButtonListener,
// close_button_widget_.
views::ImageButton* close_button_;
- // The original X location for a scroll begin event. |original_x_| is in the
- // local coordinate space of |window_label_button_view_|.
- float scroll_x_origin_;
-
DISALLOW_COPY_AND_ASSIGN(WindowSelectorItem);
};
« no previous file with comments | « ash/wm/overview/window_selector_controller.cc ('k') | ash/wm/overview/window_selector_item.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698