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

Side by Side Diff: chrome/browser/ui/gtk/constrained_window_gtk.h

Issue 11040053: retry 160232 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync changes Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/constrained_window_gtk.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CONSTRAINED_WINDOW_GTK_H_ 5 #ifndef CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_
6 #define CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ 6 #define CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 ConstrainedWindowGtk(content::WebContents* web_contents, 52 ConstrainedWindowGtk(content::WebContents* web_contents,
53 ConstrainedWindowGtkDelegate* delegate); 53 ConstrainedWindowGtkDelegate* delegate);
54 virtual ~ConstrainedWindowGtk(); 54 virtual ~ConstrainedWindowGtk();
55 55
56 // Overridden from ConstrainedWindow: 56 // Overridden from ConstrainedWindow:
57 virtual void ShowConstrainedWindow() OVERRIDE; 57 virtual void ShowConstrainedWindow() OVERRIDE;
58 virtual void CloseConstrainedWindow() OVERRIDE; 58 virtual void CloseConstrainedWindow() OVERRIDE;
59 virtual void FocusConstrainedWindow() OVERRIDE; 59 virtual void FocusConstrainedWindow() OVERRIDE;
60 60
61 // Called when the result of GetBackgroundColor may have changed.
62 void BackgroundColorChanged();
63
61 // Returns the WebContents that constrains this Constrained Window. 64 // Returns the WebContents that constrains this Constrained Window.
62 content::WebContents* owner() const { return web_contents_; } 65 content::WebContents* owner() const { return web_contents_; }
63 66
64 // Returns the toplevel widget that displays this "window". 67 // Returns the toplevel widget that displays this "window".
65 GtkWidget* widget() { return border_.get(); } 68 GtkWidget* widget() { return border_.get(); }
66 69
67 // Returns the View that we collaborate with to position ourselves. 70 // Returns the View that we collaborate with to position ourselves.
68 TabContentsViewType* ContainingView(); 71 TabContentsViewType* ContainingView();
69 72
70 private: 73 private:
(...skipping 16 matching lines...) Expand all
87 90
88 // Stores if |ShowConstrainedWindow()| has been called. 91 // Stores if |ShowConstrainedWindow()| has been called.
89 bool visible_; 92 bool visible_;
90 93
91 base::WeakPtrFactory<ConstrainedWindowGtk> weak_factory_; 94 base::WeakPtrFactory<ConstrainedWindowGtk> weak_factory_;
92 95
93 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk); 96 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk);
94 }; 97 };
95 98
96 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ 99 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/gtk/constrained_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698