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

Side by Side Diff: ui/app_list/views/app_list_view.h

Issue 1029943002: views: Make View::Paint non-virtual. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: paint-virtual: . 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/app_list/views/app_list_view.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 UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/observer_list.h" 10 #include "base/observer_list.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 // hiding the app list when a modal dialog is being shown). 92 // hiding the app list when a modal dialog is being shown).
93 void SetAppListOverlayVisible(bool visible); 93 void SetAppListOverlayVisible(bool visible);
94 94
95 // Returns true if the app list should be centered and in landscape mode. 95 // Returns true if the app list should be centered and in landscape mode.
96 bool ShouldCenterWindow() const; 96 bool ShouldCenterWindow() const;
97 97
98 views::Widget* search_box_widget() const { return search_box_widget_; } 98 views::Widget* search_box_widget() const { return search_box_widget_; }
99 99
100 // Overridden from views::View: 100 // Overridden from views::View:
101 gfx::Size GetPreferredSize() const override; 101 gfx::Size GetPreferredSize() const override;
102 void Paint(gfx::Canvas* canvas, const views::CullSet& cull_set) override; 102 void OnPaint(gfx::Canvas* canvas) override;
103 void OnThemeChanged() override; 103 void OnThemeChanged() override;
104 104
105 // WidgetDelegate overrides: 105 // WidgetDelegate overrides:
106 bool ShouldHandleSystemCommands() const override; 106 bool ShouldHandleSystemCommands() const override;
107 bool ShouldDescendIntoChildForEventHandling( 107 bool ShouldDescendIntoChildForEventHandling(
108 gfx::NativeView child, 108 gfx::NativeView child,
109 const gfx::Point& location) override; 109 const gfx::Point& location) override;
110 110
111 // Overridden from AppListViewDelegateObserver: 111 // Overridden from AppListViewDelegateObserver:
112 void OnProfilesChanged() override; 112 void OnProfilesChanged() override;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 // For UMA and testing. If non-null, triggered when the app list is painted. 187 // For UMA and testing. If non-null, triggered when the app list is painted.
188 base::Closure next_paint_callback_; 188 base::Closure next_paint_callback_;
189 189
190 DISALLOW_COPY_AND_ASSIGN(AppListView); 190 DISALLOW_COPY_AND_ASSIGN(AppListView);
191 }; 191 };
192 192
193 } // namespace app_list 193 } // namespace app_list
194 194
195 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_ 195 #endif // UI_APP_LIST_VIEWS_APP_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | ui/app_list/views/app_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698