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

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

Issue 2876223003: cocoa: add some tab-manipulation menu items (Closed)
Patch Set: Created 3 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
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_TABS_TAB_STRIP_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_
6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ 6 #define CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 // command applies to all selected tabs. 404 // command applies to all selected tabs.
405 void ExecuteContextMenuCommand(int context_index, 405 void ExecuteContextMenuCommand(int context_index,
406 ContextMenuCommand command_id); 406 ContextMenuCommand command_id);
407 407
408 // Returns a vector of indices of the tabs that will close when executing the 408 // Returns a vector of indices of the tabs that will close when executing the
409 // command |id| for the tab at |index|. The returned indices are sorted in 409 // command |id| for the tab at |index|. The returned indices are sorted in
410 // descending order. 410 // descending order.
411 std::vector<int> GetIndicesClosedByCommand(int index, 411 std::vector<int> GetIndicesClosedByCommand(int index,
412 ContextMenuCommand id) const; 412 ContextMenuCommand id) const;
413 413
414 // Returns true if 'CommandToggleTabAudioMuted' will mute. |index| is the
415 // index supplied to |ExecuteContextMenuCommand|.
416 bool WillContextMenuMute(int index);
sky 2017/05/14 15:45:03 Can this be private?
Elly Fong-Jones 2017/05/16 19:05:15 No :( it's called from BrowserWindowCommandHandler
417
414 // Returns true if 'CommandTogglePinned' will pin. |index| is the index 418 // Returns true if 'CommandTogglePinned' will pin. |index| is the index
415 // supplied to |ExecuteContextMenuCommand|. 419 // supplied to |ExecuteContextMenuCommand|.
416 bool WillContextMenuPin(int index); 420 bool WillContextMenuPin(int index);
417 421
418 // Convert a ContextMenuCommand into a browser command. Returns true if a 422 // Convert a ContextMenuCommand into a browser command. Returns true if a
419 // corresponding browser command exists, false otherwise. 423 // corresponding browser command exists, false otherwise.
420 static bool ContextMenuCommandToBrowserCommand(int cmd_id, int* browser_cmd); 424 static bool ContextMenuCommandToBrowserCommand(int cmd_id, int* browser_cmd);
421 425
422 private: 426 private:
423 class WebContentsData; 427 class WebContentsData;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
549 553
550 // TODO(sky): remove this; used for debugging 291265. 554 // TODO(sky): remove this; used for debugging 291265.
551 bool in_notify_; 555 bool in_notify_;
552 556
553 base::WeakPtrFactory<TabStripModel> weak_factory_; 557 base::WeakPtrFactory<TabStripModel> weak_factory_;
554 558
555 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel); 559 DISALLOW_IMPLICIT_CONSTRUCTORS(TabStripModel);
556 }; 560 };
557 561
558 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_ 562 #endif // CHROME_BROWSER_UI_TABS_TAB_STRIP_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698