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/tabs/tab_strip_gtk.h

Issue 149367: Replace instances of LINUX2 with OS_CHROMEOS and linux2 with chromeos. (Closed)
Patch Set: Created 11 years, 5 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
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_strip_gtk.cc » ('j') | 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 #ifndef CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
6 #define CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ 6 #define CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // Returns true if detach or select changes in the model should be reflected 324 // Returns true if detach or select changes in the model should be reflected
325 // in the TabStrip. This returns false if we're closing all tabs in the 325 // in the TabStrip. This returns false if we're closing all tabs in the
326 // TabStrip and so we should prevent updating. This is not const because we 326 // TabStrip and so we should prevent updating. This is not const because we
327 // use this as a signal to cancel any active animations. 327 // use this as a signal to cancel any active animations.
328 bool CanUpdateDisplay(); 328 bool CanUpdateDisplay();
329 329
330 // Notifies the TabStrip that the specified TabAnimation has completed. 330 // Notifies the TabStrip that the specified TabAnimation has completed.
331 // Optionally a full Layout will be performed, specified by |layout|. 331 // Optionally a full Layout will be performed, specified by |layout|.
332 void FinishAnimation(TabAnimation* animation, bool layout); 332 void FinishAnimation(TabAnimation* animation, bool layout);
333 333
334 #if defined(LINUX2) 334 #if defined(OS_CHROMEOS)
335 // Creates and returns the tab overview button. 335 // Creates and returns the tab overview button.
336 CustomDrawButton* MakeTabOverviewButton(); 336 CustomDrawButton* MakeTabOverviewButton();
337 337
338 // Invoked when the user clicks the tab overview button. 338 // Invoked when the user clicks the tab overview button.
339 static void OnTabOverviewButtonClicked(GtkWidget* widget, 339 static void OnTabOverviewButtonClicked(GtkWidget* widget,
340 TabStripGtk* tabstrip); 340 TabStripGtk* tabstrip);
341 #endif 341 #endif
342 342
343 // The Tabs we contain, and their last generated "good" bounds. 343 // The Tabs we contain, and their last generated "good" bounds.
344 std::vector<TabData> tab_data_; 344 std::vector<TabData> tab_data_;
(...skipping 27 matching lines...) Expand all
372 372
373 // Our model. 373 // Our model.
374 TabStripModel* model_; 374 TabStripModel* model_;
375 375
376 // The currently running animation. 376 // The currently running animation.
377 scoped_ptr<TabAnimation> active_animation_; 377 scoped_ptr<TabAnimation> active_animation_;
378 378
379 // The New Tab button. 379 // The New Tab button.
380 scoped_ptr<CustomDrawButton> newtab_button_; 380 scoped_ptr<CustomDrawButton> newtab_button_;
381 381
382 #if defined(LINUX2) 382 #if defined(OS_CHROMEOS)
383 // The tab overview button. 383 // The tab overview button.
384 scoped_ptr<CustomDrawButton> tab_overview_button_; 384 scoped_ptr<CustomDrawButton> tab_overview_button_;
385 #endif 385 #endif
386 386
387 // Valid for the lifetime of a drag over us. 387 // Valid for the lifetime of a drag over us.
388 scoped_ptr<DropInfo> drop_info_; 388 scoped_ptr<DropInfo> drop_info_;
389 389
390 // The controller for a drag initiated from a Tab. Valid for the lifetime of 390 // The controller for a drag initiated from a Tab. Valid for the lifetime of
391 // the drag session. 391 // the drag session.
392 scoped_ptr<DraggedTabControllerGtk> drag_controller_; 392 scoped_ptr<DraggedTabControllerGtk> drag_controller_;
393 393
394 // A factory that is used to construct a delayed callback to the 394 // A factory that is used to construct a delayed callback to the
395 // ResizeLayoutTabsNow method. 395 // ResizeLayoutTabsNow method.
396 ScopedRunnableMethodFactory<TabStripGtk> resize_layout_factory_; 396 ScopedRunnableMethodFactory<TabStripGtk> resize_layout_factory_;
397 397
398 // True if the tabstrip has already been added as a MessageLoop observer. 398 // True if the tabstrip has already been added as a MessageLoop observer.
399 bool added_as_message_loop_observer_; 399 bool added_as_message_loop_observer_;
400 400
401 DISALLOW_COPY_AND_ASSIGN(TabStripGtk); 401 DISALLOW_COPY_AND_ASSIGN(TabStripGtk);
402 }; 402 };
403 403
404 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_ 404 #endif // CHROME_BROWSER_GTK_TABS_TAB_STRIP_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/gtk/browser_window_gtk.cc ('k') | chrome/browser/gtk/tabs/tab_strip_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698