| OLD | NEW |
| 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_BROWSER_TOOLBAR_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 class TabContents; | 36 class TabContents; |
| 37 class ToolbarModel; | 37 class ToolbarModel; |
| 38 | 38 |
| 39 // View class that displays the GTK version of the toolbar and routes gtk | 39 // View class that displays the GTK version of the toolbar and routes gtk |
| 40 // events back to the Browser. | 40 // events back to the Browser. |
| 41 class BrowserToolbarGtk : public CommandUpdater::CommandObserver, | 41 class BrowserToolbarGtk : public CommandUpdater::CommandObserver, |
| 42 public ui::AcceleratorProvider, | 42 public ui::AcceleratorProvider, |
| 43 public MenuGtk::Delegate, | 43 public MenuGtk::Delegate, |
| 44 public NotificationObserver { | 44 public NotificationObserver { |
| 45 public: | 45 public: |
| 46 explicit BrowserToolbarGtk(Browser* browser, BrowserWindowGtk* window); | 46 BrowserToolbarGtk(Browser* browser, BrowserWindowGtk* window); |
| 47 virtual ~BrowserToolbarGtk(); | 47 virtual ~BrowserToolbarGtk(); |
| 48 | 48 |
| 49 // Create the contents of the toolbar. |top_level_window| is the GtkWindow | 49 // Create the contents of the toolbar. |top_level_window| is the GtkWindow |
| 50 // to which we attach our accelerators. | 50 // to which we attach our accelerators. |
| 51 void Init(Profile* profile, GtkWindow* top_level_window); | 51 void Init(Profile* profile, GtkWindow* top_level_window); |
| 52 | 52 |
| 53 // Set the various widgets' ViewIDs. | 53 // Set the various widgets' ViewIDs. |
| 54 void SetViewIDs(); | 54 void SetViewIDs(); |
| 55 | 55 |
| 56 void Show(); | 56 void Show(); |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // rendering. | 209 // rendering. |
| 210 OwnedWidgetGtk offscreen_entry_; | 210 OwnedWidgetGtk offscreen_entry_; |
| 211 | 211 |
| 212 // Manages the home button drop signal handler. | 212 // Manages the home button drop signal handler. |
| 213 scoped_ptr<ui::GtkSignalRegistrar> drop_handler_; | 213 scoped_ptr<ui::GtkSignalRegistrar> drop_handler_; |
| 214 | 214 |
| 215 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); | 215 DISALLOW_COPY_AND_ASSIGN(BrowserToolbarGtk); |
| 216 }; | 216 }; |
| 217 | 217 |
| 218 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ | 218 #endif // CHROME_BROWSER_UI_GTK_BROWSER_TOOLBAR_GTK_H_ |
| OLD | NEW |