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

Unified Diff: chrome/browser/ui/gtk/extensions/native_app_window_gtk.h

Issue 11280173: Rename ShellWindow* classes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge fix Created 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
diff --git a/chrome/browser/ui/gtk/extensions/shell_window_gtk.h b/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
similarity index 78%
rename from chrome/browser/ui/gtk/extensions/shell_window_gtk.h
rename to chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
index bcd1f382c729a12265d247475b571f9cb59ea6e9..f7c2d361750c0f578020fda3e80454cea131f7c1 100644
--- a/chrome/browser/ui/gtk/extensions/shell_window_gtk.h
+++ b/chrome/browser/ui/gtk/extensions/native_app_window_gtk.h
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
-#define CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
+#ifndef CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_
+#define CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_
#include <gtk/gtk.h>
#include "base/timer.h"
-#include "chrome/browser/ui/extensions/native_shell_window.h"
+#include "chrome/browser/ui/extensions/native_app_window.h"
#include "chrome/browser/ui/extensions/shell_window.h"
#include "chrome/browser/ui/gtk/extensions/extension_view_gtk.h"
#include "third_party/skia/include/core/SkRegion.h"
@@ -23,12 +23,12 @@ namespace extensions {
class Extension;
}
-class ShellWindowGtk : public NativeShellWindow,
- public ExtensionViewGtk::Container,
- public ui::ActiveWindowWatcherXObserver {
+class NativeAppWindowGtk : public NativeAppWindow,
+ public ExtensionViewGtk::Container,
+ public ui::ActiveWindowWatcherXObserver {
public:
- ShellWindowGtk(ShellWindow* shell_window,
- const ShellWindow::CreateParams& params);
+ NativeAppWindowGtk(ShellWindow* shell_window,
+ const ShellWindow::CreateParams& params);
// BaseWindow implementation.
virtual bool IsActive() const OVERRIDE;
@@ -55,7 +55,7 @@ class ShellWindowGtk : public NativeShellWindow,
virtual void ActiveWindowChanged(GdkWindow* active_window) OVERRIDE;
private:
- // NativeShellWindow implementation.
+ // NativeAppWindow implementation.
virtual void SetFullscreen(bool fullscreen) OVERRIDE;
virtual bool IsFullscreenOrPending() const OVERRIDE;
virtual void UpdateWindowIcon() OVERRIDE;
@@ -73,20 +73,20 @@ class ShellWindowGtk : public NativeShellWindow,
return shell_window_->extension();
}
- virtual ~ShellWindowGtk();
+ virtual ~NativeAppWindowGtk();
- CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnMainWindowDeleteEvent,
+ CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnMainWindowDeleteEvent,
GdkEvent*);
- CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnConfigure,
+ CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnConfigure,
GdkEventConfigure*);
- CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnWindowState,
+ CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnWindowState,
GdkEventWindowState*);
- CHROMEGTK_CALLBACK_1(ShellWindowGtk, gboolean, OnButtonPress,
+ CHROMEGTK_CALLBACK_1(NativeAppWindowGtk, gboolean, OnButtonPress,
GdkEventButton*);
void OnDebouncedBoundsChanged();
- ShellWindow* shell_window_; // weak - ShellWindow owns NativeShellWindow.
+ ShellWindow* shell_window_; // weak - ShellWindow owns NativeAppWindow.
GtkWindow* window_;
GdkWindowState state_;
@@ -118,14 +118,14 @@ class ShellWindowGtk : public NativeShellWindow,
bool frameless_;
// The timer used to save the window position for session restore.
- base::OneShotTimer<ShellWindowGtk> window_configure_debounce_timer_;
+ base::OneShotTimer<NativeAppWindowGtk> window_configure_debounce_timer_;
// The Extension Keybinding Registry responsible for registering listeners for
// accelerators that are sent to the window, that are destined to be turned
// into events and sent to the extension.
scoped_ptr<ExtensionKeybindingRegistryGtk> extension_keybinding_registry_;
- DISALLOW_COPY_AND_ASSIGN(ShellWindowGtk);
+ DISALLOW_COPY_AND_ASSIGN(NativeAppWindowGtk);
};
-#endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_SHELL_WINDOW_GTK_H_
+#endif // CHROME_BROWSER_UI_GTK_EXTENSIONS_NATIVE_APP_WINDOW_GTK_H_
« no previous file with comments | « chrome/browser/ui/extensions/shell_window.cc ('k') | chrome/browser/ui/gtk/extensions/native_app_window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698