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

Side by Side Diff: chrome/browser/gtk/location_bar_view_gtk.cc

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/gtk/location_bar_view_gtk.h" 5 #include "chrome/browser/gtk/location_bar_view_gtk.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "app/gtk_dnd_util.h" 9 #include "app/gtk_dnd_util.h"
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
749 } 749 }
750 750
751 AutocompleteEditView* LocationBarViewGtk::location_entry() { 751 AutocompleteEditView* LocationBarViewGtk::location_entry() {
752 return location_entry_.get(); 752 return location_entry_.get();
753 } 753 }
754 754
755 LocationBarTesting* LocationBarViewGtk::GetLocationBarForTesting() { 755 LocationBarTesting* LocationBarViewGtk::GetLocationBarForTesting() {
756 return this; 756 return this;
757 } 757 }
758 758
759 int LocationBarViewGtk::PageActionCount() {
760 return page_action_views_.size();
761 }
762
759 int LocationBarViewGtk::PageActionVisibleCount() { 763 int LocationBarViewGtk::PageActionVisibleCount() {
760 int count = 0; 764 int count = 0;
761 gtk_container_foreach(GTK_CONTAINER(page_action_hbox_.get()), 765 gtk_container_foreach(GTK_CONTAINER(page_action_hbox_.get()),
762 CountVisibleWidgets, &count); 766 CountVisibleWidgets, &count);
763 return count; 767 return count;
764 } 768 }
765 769
766 ExtensionAction* LocationBarViewGtk::GetPageAction(size_t index) { 770 ExtensionAction* LocationBarViewGtk::GetPageAction(size_t index) {
767 if (index >= page_action_views_.size()) { 771 if (index >= page_action_views_.size()) {
768 NOTREACHED(); 772 NOTREACHED();
(...skipping 764 matching lines...) Expand 10 before | Expand all | Expand 10 after
1533 1537
1534 std::string badge_text = page_action_->GetBadgeText(tab_id); 1538 std::string badge_text = page_action_->GetBadgeText(tab_id);
1535 if (badge_text.empty()) 1539 if (badge_text.empty())
1536 return FALSE; 1540 return FALSE;
1537 1541
1538 gfx::CanvasSkiaPaint canvas(event, false); 1542 gfx::CanvasSkiaPaint canvas(event, false);
1539 gfx::Rect bounding_rect(widget->allocation); 1543 gfx::Rect bounding_rect(widget->allocation);
1540 page_action_->PaintBadge(&canvas, bounding_rect, tab_id); 1544 page_action_->PaintBadge(&canvas, bounding_rect, tab_id);
1541 return FALSE; 1545 return FALSE;
1542 } 1546 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/location_bar_view_gtk.h ('k') | chrome/browser/gtk/translate/translate_infobar_base_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698