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

Unified Diff: chrome/browser/views/frame/browser_frame_win.h

Issue 42490: Experiments with a new tabstrip + animator (Closed) Base URL: svn://chrome-svn.corp.google.com/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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/views/frame/browser_frame.h ('k') | chrome/browser/views/frame/browser_frame_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/frame/browser_frame_win.h
===================================================================
--- chrome/browser/views/frame/browser_frame_win.h (revision 19992)
+++ chrome/browser/views/frame/browser_frame_win.h (working copy)
@@ -12,6 +12,7 @@
class AeroGlassNonClientView;
class BrowserNonClientFrameView;
class BrowserRootView;
+class BrowserTabStrip;
class BrowserView;
class NonClientFrameView;
class Profile;
@@ -40,6 +41,7 @@
virtual int GetMinimizeButtonOffset() const;
virtual gfx::Rect GetBoundsForTabStrip(TabStrip* tabstrip) const;
virtual void UpdateThrobber(bool running);
+ virtual void ContinueDraggingDetachedTab();
virtual ThemeProvider* GetThemeProviderForFrame() const;
// Overridden from views::Widget.
@@ -52,8 +54,9 @@
// Overridden from views::WidgetWin:
virtual bool AcceleratorPressed(views::Accelerator* accelerator);
virtual bool GetAccelerator(int cmd_id, views::Accelerator* accelerator);
+ virtual void OnEndSession(BOOL ending, UINT logoff);
virtual void OnEnterSizeMove();
- virtual void OnEndSession(BOOL ending, UINT logoff);
+ virtual void OnExitSizeMove();
virtual void OnInitMenuPopup(HMENU menu, UINT position, BOOL is_system_menu);
virtual LRESULT OnMouseActivate(HWND window,
UINT hittest_code,
@@ -63,6 +66,7 @@
virtual LRESULT OnNCActivate(BOOL active);
virtual LRESULT OnNCCalcSize(BOOL mode, LPARAM l_param);
virtual LRESULT OnNCHitTest(const CPoint& pt);
+ virtual void OnWindowPosChanged(WINDOWPOS* window_pos);
// Overridden from views::Window:
virtual int GetShowState() const;
@@ -75,6 +79,10 @@
// Updates the DWM with the frame bounds.
void UpdateDWMFrame();
+ // Update the window's pacity when entering and exiting detached dragging
+ // mode.
+ void UpdateWindowAlphaForTabDragging(bool dragging);
+
// The BrowserView is our ClientView. This is a pointer to it.
BrowserView* browser_view_;
@@ -90,6 +98,19 @@
Profile* profile_;
+ // The window styles before we modified them for a tab dragging operation.
+ DWORD saved_window_style_;
+ DWORD saved_window_ex_style_;
+
+ // True if the window is currently being moved in a detached tab drag
+ // operation.
+ bool detached_drag_mode_;
+
+ // When this frame represents a detached tab being dragged, this is a TabStrip
+ // in another window that the tab being dragged would be docked to if the
+ // mouse were released, or NULL if there is no suitable TabStrip.
+ BrowserTabStrip* drop_tabstrip_;
+
DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin);
};
« no previous file with comments | « chrome/browser/views/frame/browser_frame.h ('k') | chrome/browser/views/frame/browser_frame_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698