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

Side by Side Diff: chrome/browser/ui/gtk/location_bar_view_gtk.h

Issue 10985069: [test fixlet] Add tests for the zoom icon in the location bar on GTK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: making bubble tests interactive_ui_tests Created 8 years, 2 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 | 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_GTK_LOCATION_BAR_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 // Update the star icon after it is toggled or the theme changes. 413 // Update the star icon after it is toggled or the theme changes.
414 void UpdateStarIcon(); 414 void UpdateStarIcon();
415 415
416 // Update the Chrome To Mobile command state. 416 // Update the Chrome To Mobile command state.
417 void UpdateChromeToMobileState(); 417 void UpdateChromeToMobileState();
418 418
419 // Returns true if we should only show the URL and none of the extras like 419 // Returns true if we should only show the URL and none of the extras like
420 // the star button or page actions. 420 // the star button or page actions.
421 bool ShouldOnlyShowLocation(); 421 bool ShouldOnlyShowLocation();
422 422
423 // Friend the zoom tests so they can verify the zoom icon's behavior.
424 friend class LocationBarViewGtkZoomTest;
425 FRIEND_TEST_ALL_PREFIXES(ZoomBubbleGtkTest, BubbleSanityTest);
Lei Zhang 2012/10/01 23:35:54 IWYU: base/gtest_prod_util.h
Dan Beam 2012/10/02 00:03:06 Done.
426
423 // The outermost widget we want to be hosted. 427 // The outermost widget we want to be hosted.
424 ui::OwnedWidgetGtk hbox_; 428 ui::OwnedWidgetGtk hbox_;
425 429
426 // Zoom button. 430 // Zoom button.
427 ui::OwnedWidgetGtk zoom_; 431 ui::OwnedWidgetGtk zoom_;
428 GtkWidget* zoom_image_; 432 GtkWidget* zoom_image_;
429 433
430 // Star button. 434 // Star button.
431 ui::OwnedWidgetGtk star_; 435 ui::OwnedWidgetGtk star_;
432 GtkWidget* star_image_; 436 GtkWidget* star_image_;
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
532 BooleanPrefMember edit_bookmarks_enabled_; 536 BooleanPrefMember edit_bookmarks_enabled_;
533 537
534 // Used to remember the URL and title text when drag&drop has begun. 538 // Used to remember the URL and title text when drag&drop has begun.
535 GURL drag_url_; 539 GURL drag_url_;
536 string16 drag_title_; 540 string16 drag_title_;
537 541
538 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); 542 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk);
539 }; 543 };
540 544
541 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_ 545 #endif // CHROME_BROWSER_UI_GTK_LOCATION_BAR_VIEW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698