| OLD | NEW |
| 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 UI_APP_LIST_APP_LIST_VIEW_H_ | 5 #ifndef UI_APP_LIST_APP_LIST_VIEW_H_ |
| 6 #define UI_APP_LIST_APP_LIST_VIEW_H_ | 6 #define UI_APP_LIST_APP_LIST_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/app_list/app_list_export.h" | 9 #include "ui/app_list/app_list_export.h" |
| 10 #include "ui/app_list/search_box_view_delegate.h" | 10 #include "ui/app_list/search_box_view_delegate.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 // Initializes the widget. | 35 // Initializes the widget. |
| 36 void InitAsBubble(gfx::NativeView parent, | 36 void InitAsBubble(gfx::NativeView parent, |
| 37 PaginationModel* pagination_model, | 37 PaginationModel* pagination_model, |
| 38 views::View* anchor, | 38 views::View* anchor, |
| 39 const gfx::Point& anchor_point, | 39 const gfx::Point& anchor_point, |
| 40 views::BubbleBorder::ArrowLocation arrow_location); | 40 views::BubbleBorder::ArrowLocation arrow_location); |
| 41 | 41 |
| 42 void SetBubbleArrowLocation( | 42 void SetBubbleArrowLocation( |
| 43 views::BubbleBorder::ArrowLocation arrow_location); | 43 views::BubbleBorder::ArrowLocation arrow_location); |
| 44 | 44 |
| 45 void SetAnchorPoint(const gfx::Point& anchor_point); |
| 46 |
| 45 void Close(); | 47 void Close(); |
| 46 | 48 |
| 47 void UpdateBounds(); | 49 void UpdateBounds(); |
| 48 | 50 |
| 49 private: | 51 private: |
| 50 // Creates models to use. | 52 // Creates models to use. |
| 51 void CreateModel(); | 53 void CreateModel(); |
| 52 | 54 |
| 53 // Overridden from views::WidgetDelegateView: | 55 // Overridden from views::WidgetDelegateView: |
| 54 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 56 virtual views::View* GetInitiallyFocusedView() OVERRIDE; |
| (...skipping 27 matching lines...) Expand all Loading... |
| 82 AppListBubbleBorder* bubble_border_; // Owned by views hierarchy. | 84 AppListBubbleBorder* bubble_border_; // Owned by views hierarchy. |
| 83 SearchBoxView* search_box_view_; // Owned by views hierarchy. | 85 SearchBoxView* search_box_view_; // Owned by views hierarchy. |
| 84 ContentsView* contents_view_; // Owned by views hierarchy. | 86 ContentsView* contents_view_; // Owned by views hierarchy. |
| 85 | 87 |
| 86 DISALLOW_COPY_AND_ASSIGN(AppListView); | 88 DISALLOW_COPY_AND_ASSIGN(AppListView); |
| 87 }; | 89 }; |
| 88 | 90 |
| 89 } // namespace app_list | 91 } // namespace app_list |
| 90 | 92 |
| 91 #endif // UI_APP_LIST_APP_LIST_VIEW_H_ | 93 #endif // UI_APP_LIST_APP_LIST_VIEW_H_ |
| OLD | NEW |