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

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

Issue 6644002: [ChromeOS] Implement collected cookies in webui. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos trybot Created 9 years, 9 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
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_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 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 // Returns the widget that should get focus when ConstrainedWindow is focused. 30 // Returns the widget that should get focus when ConstrainedWindow is focused.
31 virtual GtkWidget* GetFocusWidget() = 0; 31 virtual GtkWidget* GetFocusWidget() = 0;
32 32
33 // Tells the delegate to either delete itself or set up a task to delete 33 // Tells the delegate to either delete itself or set up a task to delete
34 // itself later. 34 // itself later.
35 virtual void DeleteDelegate() = 0; 35 virtual void DeleteDelegate() = 0;
36 36
37 virtual bool GetBackgroundColor(GdkColor* color); 37 virtual bool GetBackgroundColor(GdkColor* color);
38 38
39 // Returns true if hosting ConstrainedWindowGtk should apply default padding.
40 virtual bool ShouldHaveBorderPadding() const;
41
39 protected: 42 protected:
40 virtual ~ConstrainedWindowGtkDelegate(); 43 virtual ~ConstrainedWindowGtkDelegate();
41 }; 44 };
42 45
43 // Constrained window implementation for the GTK port. Unlike the Win32 system, 46 // Constrained window implementation for the GTK port. Unlike the Win32 system,
44 // ConstrainedWindowGtk doesn't draw draggable fake windows and instead just 47 // ConstrainedWindowGtk doesn't draw draggable fake windows and instead just
45 // centers the dialog. It is thus an order of magnitude simpler. 48 // centers the dialog. It is thus an order of magnitude simpler.
46 class ConstrainedWindowGtk : public ConstrainedWindow { 49 class ConstrainedWindowGtk : public ConstrainedWindow {
47 public: 50 public:
48 #if defined(TOUCH_UI) 51 #if defined(TOUCH_UI)
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 93
91 // Stores if |ShowConstrainedWindow()| has been called. 94 // Stores if |ShowConstrainedWindow()| has been called.
92 bool visible_; 95 bool visible_;
93 96
94 ScopedRunnableMethodFactory<ConstrainedWindowGtk> factory_; 97 ScopedRunnableMethodFactory<ConstrainedWindowGtk> factory_;
95 98
96 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk); 99 DISALLOW_COPY_AND_ASSIGN(ConstrainedWindowGtk);
97 }; 100 };
98 101
99 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_ 102 #endif // CHROME_BROWSER_UI_GTK_CONSTRAINED_WINDOW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698