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

Side by Side Diff: chrome/browser/tabs/tab_strip_model.h

Issue 7327007: Moving notification types which are chrome specific to a new header file chrome_notification_type... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/tabs/tab_finder.cc ('k') | chrome/browser/tabs/tab_strip_model.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_TABS_TAB_STRIP_MODEL_H_ 5 #ifndef CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ 6 #define CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
454 // command |id| for the tab at |index|. The returned indices are sorted in 454 // command |id| for the tab at |index|. The returned indices are sorted in
455 // descending order. 455 // descending order.
456 std::vector<int> GetIndicesClosedByCommand(int index, 456 std::vector<int> GetIndicesClosedByCommand(int index,
457 ContextMenuCommand id) const; 457 ContextMenuCommand id) const;
458 458
459 // Returns true if 'CommandTogglePinned' will pin. |index| is the index 459 // Returns true if 'CommandTogglePinned' will pin. |index| is the index
460 // supplied to |ExecuteContextMenuCommand|. 460 // supplied to |ExecuteContextMenuCommand|.
461 bool WillContextMenuPin(int index); 461 bool WillContextMenuPin(int index);
462 462
463 // Overridden from notificationObserver: 463 // Overridden from notificationObserver:
464 virtual void Observe(NotificationType type, 464 virtual void Observe(int type,
465 const NotificationSource& source, 465 const NotificationSource& source,
466 const NotificationDetails& details); 466 const NotificationDetails& details);
467 467
468 // Convert a ContextMenuCommand into a browser command. Returns true if a 468 // Convert a ContextMenuCommand into a browser command. Returns true if a
469 // corresponding browser command exists, false otherwise. 469 // corresponding browser command exists, false otherwise.
470 static bool ContextMenuCommandToBrowserCommand(int cmd_id, int* browser_cmd); 470 static bool ContextMenuCommandToBrowserCommand(int cmd_id, int* browser_cmd);
471 471
472 private: 472 private:
473 // Gets the set of tab indices whose domain matches the tab at |index|. 473 // Gets the set of tab indices whose domain matches the tab at |index|.
474 void GetIndicesWithSameDomain(int index, std::vector<int>* indices); 474 void GetIndicesWithSameDomain(int index, std::vector<int>* indices);
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
640 640
641 // A scoped container for notification registries. 641 // A scoped container for notification registries.
642 NotificationRegistrar registrar_; 642 NotificationRegistrar registrar_;
643 643
644 TabStripSelectionModel selection_model_; 644 TabStripSelectionModel selection_model_;
645 645
646 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); 646 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel);
647 }; 647 };
648 648
649 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_ 649 #endif // CHROME_BROWSER_TABS_TAB_STRIP_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/tabs/tab_finder.cc ('k') | chrome/browser/tabs/tab_strip_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698