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

Unified Diff: chrome/browser/gtk/options/options_layout_gtk.h

Issue 113967: Add general options page. Options are working with the following exceptions: (Closed)
Patch Set: Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/gtk/options/general_page_gtk.cc ('k') | chrome/browser/gtk/options/options_layout_gtk.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/gtk/options/options_layout_gtk.h
diff --git a/chrome/browser/gtk/options/options_layout_gtk.h b/chrome/browser/gtk/options/options_layout_gtk.h
new file mode 100644
index 0000000000000000000000000000000000000000..5ab722a27393b115238d2d97aaede0eca73e20cf
--- /dev/null
+++ b/chrome/browser/gtk/options/options_layout_gtk.h
@@ -0,0 +1,32 @@
+// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_
+#define CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_
+
+#include <gtk/gtk.h>
+#include <string>
+
+#include "base/basictypes.h"
+
+class OptionsLayoutBuilderGtk {
+ public:
+ explicit OptionsLayoutBuilderGtk(int num_rows);
+
+ GtkWidget* get_page_widget() {
+ return page_;
+ }
+
+ // Adds an option group to the table. Handles layout and the placing of
+ // separators between groups.
+ void AddOptionGroup(const std::string& title, GtkWidget* content);
+
+ private:
+ // The parent widget
+ GtkWidget* page_;
+
+ DISALLOW_COPY_AND_ASSIGN(OptionsLayoutBuilderGtk);
+};
+
+#endif // CHROME_BROWSER_GTK_OPTIONS_OPTIONS_LAYOUT_GTK_H_
« no previous file with comments | « chrome/browser/gtk/options/general_page_gtk.cc ('k') | chrome/browser/gtk/options/options_layout_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698