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

Side by Side Diff: chrome/browser/ui/gtk/extensions/extension_popup_gtk.h

Issue 8632022: Add OVERRIDE to chrome/browser/ui/gtk/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 27 matching lines...) Expand all
38 // content::NotificationObserver implementation. 38 // content::NotificationObserver implementation.
39 virtual void Observe(int type, 39 virtual void Observe(int type,
40 const content::NotificationSource& source, 40 const content::NotificationSource& source,
41 const content::NotificationDetails& details) OVERRIDE; 41 const content::NotificationDetails& details) OVERRIDE;
42 42
43 // BubbleDelegateGtk implementation. 43 // BubbleDelegateGtk implementation.
44 virtual void BubbleClosing(BubbleGtk* bubble, 44 virtual void BubbleClosing(BubbleGtk* bubble,
45 bool closed_by_escape) OVERRIDE; 45 bool closed_by_escape) OVERRIDE;
46 46
47 // ExtensionViewGtk::Container implementation. 47 // ExtensionViewGtk::Container implementation.
48 virtual void OnExtensionPreferredSizeChanged(ExtensionViewGtk* view, 48 virtual void OnExtensionPreferredSizeChanged(
49 const gfx::Size& new_size); 49 ExtensionViewGtk* view,
50 const gfx::Size& new_size) OVERRIDE;
50 51
51 // Destroys the popup widget. This will in turn destroy us since we delete 52 // Destroys the popup widget. This will in turn destroy us since we delete
52 // ourselves when the bubble closes. Returns true if we successfully 53 // ourselves when the bubble closes. Returns true if we successfully
53 // closed the bubble. 54 // closed the bubble.
54 bool DestroyPopup(); 55 bool DestroyPopup();
55 56
56 // Get the currently showing extension popup, or NULL. 57 // Get the currently showing extension popup, or NULL.
57 static ExtensionPopupGtk* get_current_extension_popup() { 58 static ExtensionPopupGtk* get_current_extension_popup() {
58 return current_extension_popup_; 59 return current_extension_popup_;
59 } 60 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 99
99 // Used for testing. --------------------------------------------------------- 100 // Used for testing. ---------------------------------------------------------
100 gfx::Rect GetViewBounds(); 101 gfx::Rect GetViewBounds();
101 102
102 friend class BrowserActionTestUtil; 103 friend class BrowserActionTestUtil;
103 104
104 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupGtk); 105 DISALLOW_COPY_AND_ASSIGN(ExtensionPopupGtk);
105 }; 106 };
106 107
107 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_ 108 #endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_EXTENSION_POPUP_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/gtk/download/download_shelf_gtk.h ('k') | chrome/browser/ui/gtk/find_bar_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698