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

Side by Side Diff: chrome/browser/ui/views/ash/launcher/launcher_context_menu.h

Issue 10066015: ash: Replace launcher app type with Extension launch type. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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
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_VIEWS_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ 6 #define CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/launcher/launcher_types.h" 9 #include "ash/launcher/launcher_types.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 20 matching lines...) Expand all
31 virtual bool GetAcceleratorForCommandId( 31 virtual bool GetAcceleratorForCommandId(
32 int command_id, 32 int command_id,
33 ui::Accelerator* accelerator) OVERRIDE; 33 ui::Accelerator* accelerator) OVERRIDE;
34 virtual void ExecuteCommand(int command_id) OVERRIDE; 34 virtual void ExecuteCommand(int command_id) OVERRIDE;
35 35
36 private: 36 private:
37 enum MenuItem { 37 enum MenuItem {
38 MENU_OPEN, 38 MENU_OPEN,
39 MENU_CLOSE, 39 MENU_CLOSE,
40 MENU_PIN, 40 MENU_PIN,
41 LAUNCH_TYPE_PINNED_TAB,
41 LAUNCH_TYPE_REGULAR_TAB, 42 LAUNCH_TYPE_REGULAR_TAB,
43 LAUNCH_TYPE_FULLSCREEN,
42 LAUNCH_TYPE_WINDOW, 44 LAUNCH_TYPE_WINDOW,
43 MENU_AUTO_HIDE, 45 MENU_AUTO_HIDE,
44 }; 46 };
45 47
46 // Does |item_| represent a valid item? See description of constructor for 48 // Does |item_| represent a valid item? See description of constructor for
47 // details on why it may not be valid. 49 // details on why it may not be valid.
48 bool is_valid_item() const { return item_.id != 0; } 50 bool is_valid_item() const { return item_.id != 0; }
49 51
50 ChromeLauncherDelegate* delegate_; 52 ChromeLauncherDelegate* delegate_;
51 ash::LauncherItem item_; 53 ash::LauncherItem item_;
52 54
53 DISALLOW_COPY_AND_ASSIGN(LauncherContextMenu); 55 DISALLOW_COPY_AND_ASSIGN(LauncherContextMenu);
54 }; 56 };
55 57
56 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_ 58 #endif // CHROME_BROWSER_UI_VIEWS_ASH_LAUNCHER_LAUNCHER_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698