OLD | NEW |
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_GTK_BROWSER_WINDOW_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 6 #define CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, | 118 virtual bool PreHandleKeyboardEvent(const NativeWebKeyboardEvent& event, |
119 bool* is_keyboard_shortcut); | 119 bool* is_keyboard_shortcut); |
120 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); | 120 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); |
121 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents); | 121 virtual void ShowCreateShortcutsDialog(TabContents* tab_contents); |
122 virtual void Cut(); | 122 virtual void Cut(); |
123 virtual void Copy(); | 123 virtual void Copy(); |
124 virtual void Paste(); | 124 virtual void Paste(); |
125 virtual void ToggleTabStripMode() {} | 125 virtual void ToggleTabStripMode() {} |
126 virtual void ShowMatchPreview(); | 126 virtual void ShowMatchPreview(); |
127 virtual void HideMatchPreview(); | 127 virtual void HideMatchPreview(); |
| 128 virtual gfx::Rect GetMatchPreviewBounds(); |
128 | 129 |
129 // Overridden from NotificationObserver: | 130 // Overridden from NotificationObserver: |
130 virtual void Observe(NotificationType type, | 131 virtual void Observe(NotificationType type, |
131 const NotificationSource& source, | 132 const NotificationSource& source, |
132 const NotificationDetails& details); | 133 const NotificationDetails& details); |
133 | 134 |
134 // Overridden from TabStripModelObserver: | 135 // Overridden from TabStripModelObserver: |
135 virtual void TabDetachedAt(TabContents* contents, int index); | 136 virtual void TabDetachedAt(TabContents* contents, int index); |
136 virtual void TabSelectedAt(TabContents* old_contents, | 137 virtual void TabSelectedAt(TabContents* old_contents, |
137 TabContents* new_contents, | 138 TabContents* new_contents, |
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
435 | 436 |
436 // The accelerator group used to handle accelerators, owned by this object. | 437 // The accelerator group used to handle accelerators, owned by this object. |
437 GtkAccelGroup* accel_group_; | 438 GtkAccelGroup* accel_group_; |
438 | 439 |
439 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; | 440 scoped_ptr<FullscreenExitBubbleGtk> fullscreen_exit_bubble_; |
440 | 441 |
441 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); | 442 DISALLOW_COPY_AND_ASSIGN(BrowserWindowGtk); |
442 }; | 443 }; |
443 | 444 |
444 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ | 445 #endif // CHROME_BROWSER_GTK_BROWSER_WINDOW_GTK_H_ |
OLD | NEW |