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

Side by Side Diff: chrome/browser/gtk/tabs/tab_strip_gtk.cc

Issue 100106: Fullscreen mode for Linux. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/browser/gtk/tabs/tab_strip_gtk.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/tabs/tab_strip_gtk.h" 5 #include "chrome/browser/gtk/tabs/tab_strip_gtk.h"
6 6
7 #include "base/gfx/gtk_util.h" 7 #include "base/gfx/gtk_util.h"
8 #include "base/gfx/point.h" 8 #include "base/gfx/point.h"
9 #include "chrome/browser/browser.h" 9 #include "chrome/browser/browser.h"
10 #include "chrome/browser/gtk/tabs/tab_button_gtk.h" 10 #include "chrome/browser/gtk/tabs/tab_button_gtk.h"
(...skipping 555 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 newtab_button_.get()->SetImage(TabButtonGtk::BS_PUSHED, 566 newtab_button_.get()->SetImage(TabButtonGtk::BS_PUSHED,
567 rb.GetBitmapNamed(IDR_NEWTAB_BUTTON_P)); 567 rb.GetBitmapNamed(IDR_NEWTAB_BUTTON_P));
568 newtab_button_.get()->set_bounds( 568 newtab_button_.get()->set_bounds(
569 gfx::Rect(0, 0, bitmap->width(), bitmap->height())); 569 gfx::Rect(0, 0, bitmap->width(), bitmap->height()));
570 } 570 }
571 571
572 void TabStripGtk::AddTabStripToBox(GtkWidget* box) { 572 void TabStripGtk::AddTabStripToBox(GtkWidget* box) {
573 gtk_box_pack_start(GTK_BOX(box), tabstrip_.get(), FALSE, FALSE, 0); 573 gtk_box_pack_start(GTK_BOX(box), tabstrip_.get(), FALSE, FALSE, 0);
574 } 574 }
575 575
576 void TabStripGtk::Show() {
577 gtk_widget_show(tabstrip_.get());
578 }
579
580 void TabStripGtk::Hide() {
581 gtk_widget_hide(tabstrip_.get());
582 }
583
576 void TabStripGtk::Layout() { 584 void TabStripGtk::Layout() {
577 // Called from: 585 // Called from:
578 // - window resize 586 // - window resize
579 // - animation completion 587 // - animation completion
580 if (active_animation_.get()) 588 if (active_animation_.get())
581 active_animation_->Stop(); 589 active_animation_->Stop();
582 590
583 GenerateIdealBounds(); 591 GenerateIdealBounds();
584 int tab_count = GetTabCount(); 592 int tab_count = GetTabCount();
585 int tab_right = 0; 593 int tab_right = 0;
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after
1460 return TabStripModel::kNoTab; 1468 return TabStripModel::kNoTab;
1461 } 1469 }
1462 1470
1463 int TabStripGtk::NormalizeIndexToAttachedTabStrip(int index) { 1471 int TabStripGtk::NormalizeIndexToAttachedTabStrip(int index) {
1464 if (index >= model_->count()) 1472 if (index >= model_->count())
1465 return model_->count() - 1; 1473 return model_->count() - 1;
1466 if (index == TabStripModel::kNoTab) 1474 if (index == TabStripModel::kNoTab)
1467 return 0; 1475 return 0;
1468 return index; 1476 return index;
1469 } 1477 }
OLDNEW
« no previous file with comments | « chrome/browser/gtk/tabs/tab_strip_gtk.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698