| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PANELS_PANEL_BROWSER_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/gtest_prod_util.h" | 9 #include "base/gtest_prod_util.h" |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 bool closed() const { return closed_; } | 33 bool closed() const { return closed_; } |
| 34 bool focused() const { return focused_; } | 34 bool focused() const { return focused_; } |
| 35 | 35 |
| 36 PanelBrowserFrameView* GetFrameView() const; | 36 PanelBrowserFrameView* GetFrameView() const; |
| 37 | 37 |
| 38 // Called from frame view when titlebar receives a mouse event. | 38 // Called from frame view when titlebar receives a mouse event. |
| 39 // Return true if the event is handled. | 39 // Return true if the event is handled. |
| 40 // |mouse_location| is in screen coordinates. | 40 // |mouse_location| is in screen coordinates. |
| 41 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); | 41 bool OnTitlebarMousePressed(const gfx::Point& mouse_location); |
| 42 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); | 42 bool OnTitlebarMouseDragged(const gfx::Point& mouse_location); |
| 43 bool OnTitlebarMouseReleased(); | 43 bool OnTitlebarMouseReleased(panel::ClickModifier modifier); |
| 44 bool OnTitlebarMouseCaptureLost(); | 44 bool OnTitlebarMouseCaptureLost(); |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 friend class NativePanelTestingWin; | 47 friend class NativePanelTestingWin; |
| 48 friend class PanelBrowserViewTest; | 48 friend class PanelBrowserViewTest; |
| 49 | 49 |
| 50 enum MouseDraggingState { | 50 enum MouseDraggingState { |
| 51 NO_DRAGGING, | 51 NO_DRAGGING, |
| 52 DRAGGING_STARTED, | 52 DRAGGING_STARTED, |
| 53 DRAGGING_ENDED | 53 DRAGGING_ENDED |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 // The last view that had focus in the panel. This is saved so that focus can | 179 // The last view that had focus in the panel. This is saved so that focus can |
| 180 // be restored properly when a drag ends. | 180 // be restored properly when a drag ends. |
| 181 views::View* old_focused_view_; | 181 views::View* old_focused_view_; |
| 182 | 182 |
| 183 content::NotificationRegistrar registrar_; | 183 content::NotificationRegistrar registrar_; |
| 184 | 184 |
| 185 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); | 185 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); |
| 186 }; | 186 }; |
| 187 | 187 |
| 188 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ | 188 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ |
| OLD | NEW |