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

Side by Side Diff: chrome/browser/cocoa/browser_window_cocoa.h

Issue 5273004: Add "create Application Shortcut" to the app menu on NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase for commit. Created 10 years 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/browser_main.cc ('k') | chrome/browser/cocoa/browser_window_cocoa.mm » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COCOA_BROWSER_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/scoped_nsobject.h" 9 #include "base/scoped_nsobject.h"
10 #include "base/task.h" 10 #include "base/task.h"
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 virtual int GetExtraRenderViewHeight() const; 93 virtual int GetExtraRenderViewHeight() const;
94 virtual void TabContentsFocused(TabContents* tab_contents); 94 virtual void TabContentsFocused(TabContents* tab_contents);
95 virtual void ShowPageInfo(Profile* profile, 95 virtual void ShowPageInfo(Profile* profile,
96 const GURL& url, 96 const GURL& url,
97 const NavigationEntry::SSLStatus& ssl, 97 const NavigationEntry::SSLStatus& ssl,
98 bool show_history); 98 bool show_history);
99 virtual void ShowAppMenu(); 99 virtual void ShowAppMenu();
100 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 100 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
101 bool* is_keyboard_shortcut); 101 bool* is_keyboard_shortcut);
102 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 102 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
103 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents); 103 virtual void ShowCreateWebAppShortcutsDialog(TabContents* tab_contents);
104 virtual void ShowCreateChromeAppShortcutsDialog(Profile* profile,
105 const Extension* app);
104 virtual void Cut(); 106 virtual void Cut();
105 virtual void Copy(); 107 virtual void Copy();
106 virtual void Paste(); 108 virtual void Paste();
107 virtual void ToggleTabStripMode(); 109 virtual void ToggleTabStripMode();
108 virtual void OpenTabpose(); 110 virtual void OpenTabpose();
109 virtual void PrepareForInstant(); 111 virtual void PrepareForInstant();
110 virtual void ShowInstant(TabContents* preview_contents); 112 virtual void ShowInstant(TabContents* preview_contents);
111 virtual void HideInstant(); 113 virtual void HideInstant();
112 virtual gfx::Rect GetInstantBounds(); 114 virtual gfx::Rect GetInstantBounds();
113 115
(...skipping 18 matching lines...) Expand all
132 void UpdateSidebarForContents(TabContents* tab_contents); 134 void UpdateSidebarForContents(TabContents* tab_contents);
133 135
134 NotificationRegistrar registrar_; 136 NotificationRegistrar registrar_;
135 Browser* browser_; // weak, owned by controller 137 Browser* browser_; // weak, owned by controller
136 BrowserWindowController* controller_; // weak, owns us 138 BrowserWindowController* controller_; // weak, owns us
137 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; 139 ScopedRunnableMethodFactory<Browser> confirm_close_factory_;
138 scoped_nsobject<NSString> pending_window_title_; 140 scoped_nsobject<NSString> pending_window_title_;
139 }; 141 };
140 142
141 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 143 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_main.cc ('k') | chrome/browser/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698