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

Unified Diff: ash/wm/caption_buttons/frame_maximize_button.h

Issue 59043013: Add flag to enable immersive fullscreen for v2 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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: ash/wm/caption_buttons/frame_maximize_button.h
diff --git a/ash/wm/caption_buttons/frame_maximize_button.h b/ash/wm/caption_buttons/frame_maximize_button.h
index 1539833a750ffed666a96324fcf9779ef9c0eb64..c60f7a570d1f7030c9f5a240544ab8885e2ed3c9 100644
--- a/ash/wm/caption_buttons/frame_maximize_button.h
+++ b/ash/wm/caption_buttons/frame_maximize_button.h
@@ -9,6 +9,7 @@
#include "ash/wm/caption_buttons/maximize_bubble_frame_state.h"
#include "ash/wm/workspace/snap_types.h"
#include "base/memory/scoped_ptr.h"
+#include "base/observer_list.h"
#include "base/timer/timer.h"
#include "ui/aura/window_observer.h"
#include "ui/views/controls/button/image_button.h"
@@ -19,6 +20,7 @@ class Widget;
}
namespace ash {
+class FrameMaximizeButtonObserver;
namespace internal {
class PhantomWindowController;
@@ -36,6 +38,9 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton,
views::Widget* frame);
virtual ~FrameMaximizeButton();
+ void AddObserver(FrameMaximizeButtonObserver* observer);
+ void RemoveObserver(FrameMaximizeButtonObserver* observer);
+
// Updates |snap_type_| based on a a given snap type. This is used by
// external hover events from the button menu.
void SnapButtonHovered(SnapType type);
@@ -44,6 +49,9 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton,
// which will at the same time close the window.
void ExecuteSnapAndCloseMenu(SnapType type);
+ // Called by the MaximizeBubbleController when the maximize bubble is shown.
+ void OnMaximizeBubbleShown(views::Widget* bubble);
+
// Remove the maximize menu from the screen (and destroy it).
void DestroyMaximizeMenu();
@@ -175,6 +183,8 @@ class ASH_EXPORT FrameMaximizeButton : public views::ImageButton,
// The delay of the bubble appearance.
int bubble_appearance_delay_ms_;
+ ObserverList<FrameMaximizeButtonObserver> observer_list_;
+
DISALLOW_COPY_AND_ASSIGN(FrameMaximizeButton);
};
« no previous file with comments | « ash/wm/caption_buttons/frame_caption_button_container_view.cc ('k') | ash/wm/caption_buttons/frame_maximize_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698