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

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

Issue 4932001: Makes the current page dim out when transitioning to instant preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup Created 10 years, 1 month 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 | « no previous file | 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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 virtual void ShowAppMenu(); 100 virtual void ShowAppMenu();
101 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, 101 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event,
102 bool* is_keyboard_shortcut); 102 bool* is_keyboard_shortcut);
103 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 103 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
104 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents); 104 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents);
105 virtual void Cut(); 105 virtual void Cut();
106 virtual void Copy(); 106 virtual void Copy();
107 virtual void Paste(); 107 virtual void Paste();
108 virtual void ToggleTabStripMode(); 108 virtual void ToggleTabStripMode();
109 virtual void OpenTabpose(); 109 virtual void OpenTabpose();
110 virtual void PrepareForInstant();
110 virtual void ShowInstant(TabContents* preview_contents); 111 virtual void ShowInstant(TabContents* preview_contents);
111 virtual void HideInstant(); 112 virtual void HideInstant();
112 virtual gfx::Rect GetInstantBounds(); 113 virtual gfx::Rect GetInstantBounds();
113 114
114 // Overridden from NotificationObserver 115 // Overridden from NotificationObserver
115 virtual void Observe(NotificationType type, 116 virtual void Observe(NotificationType type,
116 const NotificationSource& source, 117 const NotificationSource& source,
117 const NotificationDetails& details); 118 const NotificationDetails& details);
118 119
119 // Adds the given FindBar cocoa controller to this browser window. 120 // Adds the given FindBar cocoa controller to this browser window.
(...skipping 12 matching lines...) Expand all
132 void UpdateSidebarForContents(TabContents* tab_contents); 133 void UpdateSidebarForContents(TabContents* tab_contents);
133 134
134 NotificationRegistrar registrar_; 135 NotificationRegistrar registrar_;
135 Browser* browser_; // weak, owned by controller 136 Browser* browser_; // weak, owned by controller
136 BrowserWindowController* controller_; // weak, owns us 137 BrowserWindowController* controller_; // weak, owns us
137 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; 138 ScopedRunnableMethodFactory<Browser> confirm_close_factory_;
138 scoped_nsobject<NSString> pending_window_title_; 139 scoped_nsobject<NSString> pending_window_title_;
139 }; 140 };
140 141
141 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 142 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698