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

Side by Side Diff: ash/test/shelf_view_test_api.h

Issue 1097393002: Added Launcher_SwitchTask UMA user action. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 8 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/shelf/shelf_view_unittest.cc ('k') | ash/test/shelf_view_test_api.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_TEST_SHELF_VIEW_TEST_API_H_ 5 #ifndef ASH_TEST_SHELF_VIEW_TEST_API_H_
6 #define ASH_TEST_SHELF_VIEW_TEST_API_H_ 6 #define ASH_TEST_SHELF_VIEW_TEST_API_H_
7 7
8 #include "ash/shelf/shelf_item_delegate.h"
8 #include "ash/shelf/shelf_item_types.h" 9 #include "ash/shelf/shelf_item_types.h"
9 #include "base/basictypes.h" 10 #include "base/basictypes.h"
10 11
11 namespace gfx { 12 namespace gfx {
12 class Rect; 13 class Rect;
13 class Size; 14 class Size;
14 } 15 }
15 16
16 namespace ui { 17 namespace ui {
17 class Event; 18 class Event;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 75
75 // Returns the button size. 76 // Returns the button size.
76 int GetButtonSize(); 77 int GetButtonSize();
77 78
78 // Returns the button space size. 79 // Returns the button space size.
79 int GetButtonSpacing(); 80 int GetButtonSpacing();
80 81
81 // Wrapper for ShelfView::ButtonPressed. 82 // Wrapper for ShelfView::ButtonPressed.
82 void ButtonPressed(views::Button* sender, const ui::Event& event); 83 void ButtonPressed(views::Button* sender, const ui::Event& event);
83 84
85 // Wrapper for ShelfView::RecordIconActivatedSource(const ui::Event&).
86 void RecordIconActivatedSource(const ui::Event& event);
87
88 // Wrapper for ShelfView::RecordIconActivatedAction(
89 // ShelfItemDelegate::PerformedAction).
90 void RecordIconActivatedAction(
91 ShelfItemDelegate::PerformedAction performed_action);
92
84 // Wrapper for ShelfView::SameDragType. 93 // Wrapper for ShelfView::SameDragType.
85 bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const; 94 bool SameDragType(ShelfItemType typea, ShelfItemType typeb) const;
86 95
87 // Sets ShelfDelegate. 96 // Sets ShelfDelegate.
88 void SetShelfDelegate(ShelfDelegate* delegate); 97 void SetShelfDelegate(ShelfDelegate* delegate);
89 98
90 // Returns re-insertable bounds in screen. 99 // Returns re-insertable bounds in screen.
91 gfx::Rect GetBoundsForDragInsertInScreen(); 100 gfx::Rect GetBoundsForDragInsertInScreen();
92 101
93 // Returns true if item is ripped off. 102 // Returns true if item is ripped off.
94 bool IsRippedOffFromShelf(); 103 bool IsRippedOffFromShelf();
95 104
96 // Returns true if an item is ripped off and entered into shelf. 105 // Returns true if an item is ripped off and entered into shelf.
97 bool DraggedItemFromOverflowToShelf(); 106 bool DraggedItemFromOverflowToShelf();
98 107
99 private: 108 private:
100 ShelfView* shelf_view_; 109 ShelfView* shelf_view_;
101 110
102 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI); 111 DISALLOW_COPY_AND_ASSIGN(ShelfViewTestAPI);
103 }; 112 };
104 113
105 } // namespace test 114 } // namespace test
106 } // namespace ash 115 } // namespace ash
107 116
108 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_ 117 #endif // ASH_TEST_SHELF_VIEW_TEST_API_H_
OLDNEW
« no previous file with comments | « ash/shelf/shelf_view_unittest.cc ('k') | ash/test/shelf_view_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698