Chromium Code Reviews| 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 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 <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 247 ToolbarModel* GetToolbarModel() override; | 247 ToolbarModel* GetToolbarModel() override; |
| 248 content::WebContents* GetWebContents() override; | 248 content::WebContents* GetWebContents() override; |
| 249 | 249 |
| 250 // ZoomEventManagerObserver: | 250 // ZoomEventManagerObserver: |
| 251 // Updates the view for the zoom icon when default zoom levels change. | 251 // Updates the view for the zoom icon when default zoom levels change. |
| 252 void OnDefaultZoomLevelChanged() override; | 252 void OnDefaultZoomLevelChanged() override; |
| 253 | 253 |
| 254 private: | 254 private: |
| 255 using ContentSettingViews = std::vector<ContentSettingImageView*>; | 255 using ContentSettingViews = std::vector<ContentSettingImageView*>; |
| 256 | 256 |
| 257 friend class ContentSettingBubbleDialogTest; | |
|
tapted
2017/02/07 01:23:32
(nit - remove?: not sure you still need this)
kylix_rd
2017/02/07 18:25:21
GetLocationBarForTesting() is private, so this is
tapted
2017/02/08 00:31:49
True, it's private in LocationBarView, but
browse
tapted
2017/02/15 01:44:25
ping?
| |
| 257 friend class PageActionImageView; | 258 friend class PageActionImageView; |
| 258 friend class PageActionWithBadgeView; | 259 friend class PageActionWithBadgeView; |
| 259 using PageActions = std::vector<ExtensionAction*>; | 260 using PageActions = std::vector<ExtensionAction*>; |
| 260 using PageActionViews = std::vector<std::unique_ptr<PageActionWithBadgeView>>; | 261 using PageActionViews = std::vector<std::unique_ptr<PageActionWithBadgeView>>; |
| 261 | 262 |
| 262 // Helper for GetMinimumWidth(). Calculates the incremental minimum width | 263 // Helper for GetMinimumWidth(). Calculates the incremental minimum width |
| 263 // |view| should add to the trailing width after the omnibox. | 264 // |view| should add to the trailing width after the omnibox. |
| 264 int IncrementalMinimumWidth(views::View* view) const; | 265 int IncrementalMinimumWidth(views::View* view) const; |
| 265 | 266 |
| 266 // Returns the thickness of any visible edge, in pixels. | 267 // Returns the thickness of any visible edge, in pixels. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 354 const OmniboxView* GetOmniboxView() const override; | 355 const OmniboxView* GetOmniboxView() const override; |
| 355 LocationBarTesting* GetLocationBarForTesting() override; | 356 LocationBarTesting* GetLocationBarForTesting() override; |
| 356 | 357 |
| 357 // LocationBarTesting: | 358 // LocationBarTesting: |
| 358 int PageActionCount() override; | 359 int PageActionCount() override; |
| 359 int PageActionVisibleCount() override; | 360 int PageActionVisibleCount() override; |
| 360 ExtensionAction* GetPageAction(size_t index) override; | 361 ExtensionAction* GetPageAction(size_t index) override; |
| 361 ExtensionAction* GetVisiblePageAction(size_t index) override; | 362 ExtensionAction* GetVisiblePageAction(size_t index) override; |
| 362 void TestPageActionPressed(size_t index) override; | 363 void TestPageActionPressed(size_t index) override; |
| 363 bool GetBookmarkStarVisibility() override; | 364 bool GetBookmarkStarVisibility() override; |
| 365 bool TestContentSettingImagePressed(size_t index) override; | |
| 364 | 366 |
| 365 // views::View: | 367 // views::View: |
| 366 const char* GetClassName() const override; | 368 const char* GetClassName() const override; |
| 367 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; | 369 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; |
| 368 void OnFocus() override; | 370 void OnFocus() override; |
| 369 void OnPaint(gfx::Canvas* canvas) override; | 371 void OnPaint(gfx::Canvas* canvas) override; |
| 370 void OnPaintBorder(gfx::Canvas* canvas) override; | 372 void OnPaintBorder(gfx::Canvas* canvas) override; |
| 371 | 373 |
| 372 // views::DragController: | 374 // views::DragController: |
| 373 void WriteDragDataForView(View* sender, | 375 void WriteDragDataForView(View* sender, |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 464 BooleanPrefMember edit_bookmarks_enabled_; | 466 BooleanPrefMember edit_bookmarks_enabled_; |
| 465 | 467 |
| 466 // This is a debug state variable that stores if the WebContents was null | 468 // This is a debug state variable that stores if the WebContents was null |
| 467 // during the last RefreshPageAction. | 469 // during the last RefreshPageAction. |
| 468 bool web_contents_null_at_last_refresh_; | 470 bool web_contents_null_at_last_refresh_; |
| 469 | 471 |
| 470 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 472 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 471 }; | 473 }; |
| 472 | 474 |
| 473 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 475 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |