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

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

Issue 2668833003: DialogBrowserTest implementation to invoke Content settings bubble dialogs. (Closed)
Patch Set: Updates from feedback Created 3 years, 10 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 ToolbarModel* GetToolbarModel() override; 239 ToolbarModel* GetToolbarModel() override;
240 content::WebContents* GetWebContents() override; 240 content::WebContents* GetWebContents() override;
241 241
242 // ZoomEventManagerObserver: 242 // ZoomEventManagerObserver:
243 // Updates the view for the zoom icon when default zoom levels change. 243 // Updates the view for the zoom icon when default zoom levels change.
244 void OnDefaultZoomLevelChanged() override; 244 void OnDefaultZoomLevelChanged() override;
245 245
246 private: 246 private:
247 using ContentSettingViews = std::vector<ContentSettingImageView*>; 247 using ContentSettingViews = std::vector<ContentSettingImageView*>;
248 248
249 friend class ContentSettingBubbleDialogTest;
249 friend class PageActionImageView; 250 friend class PageActionImageView;
250 friend class PageActionWithBadgeView; 251 friend class PageActionWithBadgeView;
251 using PageActions = std::vector<ExtensionAction*>; 252 using PageActions = std::vector<ExtensionAction*>;
252 using PageActionViews = std::vector<std::unique_ptr<PageActionWithBadgeView>>; 253 using PageActionViews = std::vector<std::unique_ptr<PageActionWithBadgeView>>;
253 254
254 // Helper for GetMinimumWidth(). Calculates the incremental minimum width 255 // Helper for GetMinimumWidth(). Calculates the incremental minimum width
255 // |view| should add to the trailing width after the omnibox. 256 // |view| should add to the trailing width after the omnibox.
256 int IncrementalMinimumWidth(views::View* view) const; 257 int IncrementalMinimumWidth(views::View* view) const;
257 258
258 // Returns the thickness of any visible edge, in pixels. 259 // Returns the thickness of any visible edge, in pixels.
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 const OmniboxView* GetOmniboxView() const override; 347 const OmniboxView* GetOmniboxView() const override;
347 LocationBarTesting* GetLocationBarForTesting() override; 348 LocationBarTesting* GetLocationBarForTesting() override;
348 349
349 // LocationBarTesting: 350 // LocationBarTesting:
350 int PageActionCount() override; 351 int PageActionCount() override;
351 int PageActionVisibleCount() override; 352 int PageActionVisibleCount() override;
352 ExtensionAction* GetPageAction(size_t index) override; 353 ExtensionAction* GetPageAction(size_t index) override;
353 ExtensionAction* GetVisiblePageAction(size_t index) override; 354 ExtensionAction* GetVisiblePageAction(size_t index) override;
354 void TestPageActionPressed(size_t index) override; 355 void TestPageActionPressed(size_t index) override;
355 bool GetBookmarkStarVisibility() override; 356 bool GetBookmarkStarVisibility() override;
357 bool TestContentSettingImagePressed(size_t index) override;
356 358
357 // views::View: 359 // views::View:
358 const char* GetClassName() const override; 360 const char* GetClassName() const override;
359 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; 361 void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
360 void OnFocus() override; 362 void OnFocus() override;
361 void OnPaint(gfx::Canvas* canvas) override; 363 void OnPaint(gfx::Canvas* canvas) override;
362 void OnPaintBorder(gfx::Canvas* canvas) override; 364 void OnPaintBorder(gfx::Canvas* canvas) override;
363 365
364 // views::DragController: 366 // views::DragController:
365 void WriteDragDataForView(View* sender, 367 void WriteDragDataForView(View* sender,
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
456 BooleanPrefMember edit_bookmarks_enabled_; 458 BooleanPrefMember edit_bookmarks_enabled_;
457 459
458 // This is a debug state variable that stores if the WebContents was null 460 // This is a debug state variable that stores if the WebContents was null
459 // during the last RefreshPageAction. 461 // during the last RefreshPageAction.
460 bool web_contents_null_at_last_refresh_; 462 bool web_contents_null_at_last_refresh_;
461 463
462 DISALLOW_COPY_AND_ASSIGN(LocationBarView); 464 DISALLOW_COPY_AND_ASSIGN(LocationBarView);
463 }; 465 };
464 466
465 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 467 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698