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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 11418229: alternate ntp: implement right-aligned search token (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-impl as tab-to-search-ui-like bubble Created 8 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 | Annotate | Revision Log
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_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 18 matching lines...) Expand all
29 #include "ui/compositor/layer_animation_observer.h" 29 #include "ui/compositor/layer_animation_observer.h"
30 #endif 30 #endif
31 31
32 class ActionBoxButtonView; 32 class ActionBoxButtonView;
33 class CommandUpdater; 33 class CommandUpdater;
34 class ContentSettingBubbleModelDelegate; 34 class ContentSettingBubbleModelDelegate;
35 class ContentSettingImageView; 35 class ContentSettingImageView;
36 class EVBubbleView; 36 class EVBubbleView;
37 class ExtensionAction; 37 class ExtensionAction;
38 class GURL; 38 class GURL;
39 class IconLabelBubbleView;
39 class InstantController; 40 class InstantController;
40 class KeywordHintView; 41 class KeywordHintView;
41 class LocationIconView; 42 class LocationIconView;
42 class OpenPDFInReaderView; 43 class OpenPDFInReaderView;
43 class PageActionWithBadgeView; 44 class PageActionWithBadgeView;
44 class PageActionImageView; 45 class PageActionImageView;
45 class Profile; 46 class Profile;
46 class ScriptBubbleIconView; 47 class ScriptBubbleIconView;
47 class SelectedKeywordView; 48 class SelectedKeywordView;
48 class StarView; 49 class StarView;
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
487 488
488 // The star. 489 // The star.
489 StarView* star_view_; 490 StarView* star_view_;
490 491
491 // The web intents choose-another-service button 492 // The web intents choose-another-service button
492 WebIntentsButtonView* web_intents_button_view_; 493 WebIntentsButtonView* web_intents_button_view_;
493 494
494 // The action box button (plus). 495 // The action box button (plus).
495 ActionBoxButtonView* action_box_button_view_; 496 ActionBoxButtonView* action_box_button_view_;
496 497
498 // The search bubble view with text "<Search provider> Search".
Peter Kasting 2012/12/05 21:13:20 Nit: Say more about when this appears.
kuan 2012/12/11 21:10:29 Done.
499 IconLabelBubbleView* search_bubble_view_;
500
497 // The mode that dictates how the bar shows. 501 // The mode that dictates how the bar shows.
498 Mode mode_; 502 Mode mode_;
499 503
500 // True if we should show a focus rect while the location entry field is 504 // True if we should show a focus rect while the location entry field is
501 // focused. Used when the toolbar is in full keyboard accessibility mode. 505 // focused. Used when the toolbar is in full keyboard accessibility mode.
502 bool show_focus_rect_; 506 bool show_focus_rect_;
503 507
504 // This is in case we're destroyed before the model loads. We need to make 508 // This is in case we're destroyed before the model loads. We need to make
505 // Add/RemoveObserver calls. 509 // Add/RemoveObserver calls.
506 TemplateURLService* template_url_service_; 510 TemplateURLService* template_url_service_;
507 511
508 // Tracks this preference to determine whether bookmark editing is allowed. 512 // Tracks this preference to determine whether bookmark editing is allowed.
509 BooleanPrefMember edit_bookmarks_enabled_; 513 BooleanPrefMember edit_bookmarks_enabled_;
510 514
511 // While animating, the host clips the widget and draws only the bottom 515 // While animating, the host clips the widget and draws only the bottom
512 // part of it. The view needs to know the pixel offset at which we are drawing 516 // part of it. The view needs to know the pixel offset at which we are drawing
513 // the widget so that we can draw the curved edges that attach to the toolbar 517 // the widget so that we can draw the curved edges that attach to the toolbar
514 // in the right location. 518 // in the right location.
515 int animation_offset_; 519 int animation_offset_;
516 520
517 // Used to register for notifications received by NotificationObserver. 521 // Used to register for notifications received by NotificationObserver.
518 content::NotificationRegistrar registrar_; 522 content::NotificationRegistrar registrar_;
519 523
520 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 524 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
521 }; 525 };
522 526
523 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 527 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698