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

Side by Side Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 789763004: Fix disappearing page actions bug. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor rename. Created 6 years 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
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 CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #import <Cocoa/Cocoa.h> 10 #import <Cocoa/Cocoa.h>
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 187
188 private: 188 private:
189 friend ZoomDecorationTest; 189 friend ZoomDecorationTest;
190 190
191 // Posts |notification| to the default notification center. 191 // Posts |notification| to the default notification center.
192 void PostNotification(NSString* notification); 192 void PostNotification(NSString* notification);
193 193
194 // Return the decoration for |page_action|. 194 // Return the decoration for |page_action|.
195 PageActionDecoration* GetPageActionDecoration(ExtensionAction* page_action); 195 PageActionDecoration* GetPageActionDecoration(ExtensionAction* page_action);
196 196
197 // Clear the page-action decorations. 197 // Clear the page-actions and page-action decorations.
198 void DeletePageActionDecorations(); 198 void DeletePageActionsAndDecorations();
199 199
200 void OnEditBookmarksEnabledChanged(); 200 void OnEditBookmarksEnabledChanged();
201 201
202 // Re-generate the page-action decorations from the profile's 202 // Re-generate the page-action decorations from the profile's
203 // extension service. 203 // extension service.
204 void RefreshPageActionDecorations(); 204 void RefreshPageActionDecorations();
205 205
206 // Updates visibility of the content settings icons based on the current 206 // Updates visibility of the content settings icons based on the current
207 // tab contents state. 207 // tab contents state.
208 bool RefreshContentSettingsDecorations(); 208 bool RefreshContentSettingsDecorations();
(...skipping 30 matching lines...) Expand all
239 scoped_ptr<StarDecoration> star_decoration_; 239 scoped_ptr<StarDecoration> star_decoration_;
240 240
241 // Translate icon at the end of the ominibox. 241 // Translate icon at the end of the ominibox.
242 scoped_ptr<TranslateDecoration> translate_decoration_; 242 scoped_ptr<TranslateDecoration> translate_decoration_;
243 243
244 // A zoom icon at the end of the omnibox, which shows at non-standard zoom 244 // A zoom icon at the end of the omnibox, which shows at non-standard zoom
245 // levels. 245 // levels.
246 scoped_ptr<ZoomDecoration> zoom_decoration_; 246 scoped_ptr<ZoomDecoration> zoom_decoration_;
247 247
248 // The installed page actions. 248 // The installed page actions.
249 // There should be a 1:1 correspondence between elements of |page_actions_|
250 // and elements of |page_action_decorations_|.
249 std::vector<ExtensionAction*> page_actions_; 251 std::vector<ExtensionAction*> page_actions_;
danduong 2014/12/20 03:22:14 Same comment as the views implementation. We might
erikchen 2014/12/22 20:39:43 Done.
250 252
251 // Decorations for the installed Page Actions. 253 // Decorations for the installed Page Actions.
254 // There should be a 1:1 correspondence between elements of |page_actions_|
255 // and elements of |page_action_decorations_|.
252 ScopedVector<PageActionDecoration> page_action_decorations_; 256 ScopedVector<PageActionDecoration> page_action_decorations_;
253 257
254 // The content blocked decorations. 258 // The content blocked decorations.
255 ScopedVector<ContentSettingDecoration> content_setting_decorations_; 259 ScopedVector<ContentSettingDecoration> content_setting_decorations_;
256 260
257 // Keyword hint decoration displayed on the right-hand side. 261 // Keyword hint decoration displayed on the right-hand side.
258 scoped_ptr<KeywordHintDecoration> keyword_hint_decoration_; 262 scoped_ptr<KeywordHintDecoration> keyword_hint_decoration_;
259 263
260 // The voice search icon. 264 // The voice search icon.
261 scoped_ptr<MicSearchDecoration> mic_search_decoration_; 265 scoped_ptr<MicSearchDecoration> mic_search_decoration_;
(...skipping 15 matching lines...) Expand all
277 // Used to schedule a task for the first run info bubble. 281 // Used to schedule a task for the first run info bubble.
278 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_; 282 base::WeakPtrFactory<LocationBarViewMac> weak_ptr_factory_;
279 283
280 // Used to change the visibility of the star decoration. 284 // Used to change the visibility of the star decoration.
281 BooleanPrefMember edit_bookmarks_enabled_; 285 BooleanPrefMember edit_bookmarks_enabled_;
282 286
283 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac); 287 DISALLOW_COPY_AND_ASSIGN(LocationBarViewMac);
284 }; 288 };
285 289
286 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_ 290 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_LOCATION_BAR_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698