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

Unified Diff: chrome/browser/ui/views/apps/native_app_window_views.h

Issue 27029006: apps: Move chrome's ShellWindowFrameView into apps/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/apps/native_app_window_views.h
diff --git a/chrome/browser/ui/views/apps/native_app_window_views.h b/chrome/browser/ui/views/apps/native_app_window_views.h
index 833393c08d4de3e0dde7776cec5dbd50dfc044a1..e238bd865f65ac7692490a570cccff1aba3a5946 100644
--- a/chrome/browser/ui/views/apps/native_app_window_views.h
+++ b/chrome/browser/ui/views/apps/native_app_window_views.h
@@ -23,6 +23,10 @@
class ExtensionKeybindingRegistryViews;
class Profile;
+namespace apps {
+class ShellWindowFrameView;
+}
+
namespace content {
class RenderViewHost;
class WebContents;
@@ -45,9 +49,6 @@ class NativeAppWindowViews : public apps::NativeAppWindow,
const apps::ShellWindow::CreateParams& params);
virtual ~NativeAppWindowViews();
- bool frameless() const { return frameless_; }
- SkRegion* draggable_region() { return draggable_region_.get(); }
-
private:
void InitializeDefaultWindow(
const apps::ShellWindow::CreateParams& create_params);
@@ -57,6 +58,9 @@ class NativeAppWindowViews : public apps::NativeAppWindow,
bool ShouldUseChromeStyleFrame() const;
+ // Caller owns the returned object.
+ apps::ShellWindowFrameView* CreateShellWindowFrameView();
+
#if defined(OS_WIN)
void OnShortcutInfoLoaded(
const ShellIntegration::ShortcutInfo& shortcut_info);
@@ -141,8 +145,10 @@ class NativeAppWindowViews : public apps::NativeAppWindow,
virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE;
virtual void UpdateDraggableRegions(
const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
+ virtual SkRegion* GetDraggableRegion() OVERRIDE;
virtual void HandleKeyboardEvent(
const content::NativeWebKeyboardEvent& event) OVERRIDE;
+ virtual bool IsFrameless() const OVERRIDE;
virtual gfx::Insets GetFrameInsets() const OVERRIDE;
virtual bool IsVisible() const OVERRIDE;
virtual void HideWithApp() OVERRIDE;
« no previous file with comments | « chrome/browser/ui/gtk/apps/native_app_window_gtk.cc ('k') | chrome/browser/ui/views/apps/native_app_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698