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

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

Issue 3417011: Makes match preview send the dimensions of the omnibox to the page. (Closed)
Patch Set: Fix unittest Created 10 years, 3 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
« no previous file with comments | « chrome/browser/browser_window.h ('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/task.h" 9 #include "base/task.h"
10 #include "chrome/browser/browser_window.h" 10 #include "chrome/browser/browser_window.h"
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ShowCreateShortcutsDialog(TabContents* tab_contents);
104 virtual void Cut(); 104 virtual void Cut();
105 virtual void Copy(); 105 virtual void Copy();
106 virtual void Paste(); 106 virtual void Paste();
107 virtual void ToggleTabStripMode(); 107 virtual void ToggleTabStripMode();
108 virtual void OpenTabpose(); 108 virtual void OpenTabpose();
109 virtual void ShowMatchPreview(); 109 virtual void ShowMatchPreview();
110 virtual void HideMatchPreview(); 110 virtual void HideMatchPreview();
111 virtual gfx::Rect GetMatchPreviewBounds();
111 112
112 // Overridden from NotificationObserver 113 // Overridden from NotificationObserver
113 virtual void Observe(NotificationType type, 114 virtual void Observe(NotificationType type,
114 const NotificationSource& source, 115 const NotificationSource& source,
115 const NotificationDetails& details); 116 const NotificationDetails& details);
116 117
117 // Adds the given FindBar cocoa controller to this browser window. 118 // Adds the given FindBar cocoa controller to this browser window.
118 void AddFindBar(FindBarCocoaController* find_bar_cocoa_controller); 119 void AddFindBar(FindBarCocoaController* find_bar_cocoa_controller);
119 120
120 // Returns the cocoa-world BrowserWindowController 121 // Returns the cocoa-world BrowserWindowController
121 BrowserWindowController* cocoa_controller() { return controller_; } 122 BrowserWindowController* cocoa_controller() { return controller_; }
122 123
123 protected: 124 protected:
124 virtual void DestroyBrowser(); 125 virtual void DestroyBrowser();
125 126
126 private: 127 private:
127 int GetCommandId(const NativeWebKeyboardEvent& event); 128 int GetCommandId(const NativeWebKeyboardEvent& event);
128 bool HandleKeyboardEventInternal(NSEvent* event); 129 bool HandleKeyboardEventInternal(NSEvent* event);
129 NSWindow* window() const; // Accessor for the (current) |NSWindow|. 130 NSWindow* window() const; // Accessor for the (current) |NSWindow|.
130 void UpdateSidebarForContents(TabContents* tab_contents); 131 void UpdateSidebarForContents(TabContents* tab_contents);
131 132
132 NotificationRegistrar registrar_; 133 NotificationRegistrar registrar_;
133 Browser* browser_; // weak, owned by controller 134 Browser* browser_; // weak, owned by controller
134 BrowserWindowController* controller_; // weak, owns us 135 BrowserWindowController* controller_; // weak, owns us
135 ScopedRunnableMethodFactory<Browser> confirm_close_factory_; 136 ScopedRunnableMethodFactory<Browser> confirm_close_factory_;
136 }; 137 };
137 138
138 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_ 139 #endif // CHROME_BROWSER_COCOA_BROWSER_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_window.h ('k') | chrome/browser/cocoa/browser_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698