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

Unified Diff: mash/wm/frame/non_client_frame_view_mash.h

Issue 1848653006: Random wm frame painting fixes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: override Created 4 years, 9 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 | « mash/task_viewer/task_viewer.cc ('k') | mash/wm/frame/non_client_frame_view_mash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mash/wm/frame/non_client_frame_view_mash.h
diff --git a/mash/wm/frame/non_client_frame_view_mash.h b/mash/wm/frame/non_client_frame_view_mash.h
index e39f44d5c3dd5be02db655017b799e7276579587..e5f5a946e04927f9196213adc89bd738bd87c448 100644
--- a/mash/wm/frame/non_client_frame_view_mash.h
+++ b/mash/wm/frame/non_client_frame_view_mash.h
@@ -8,6 +8,7 @@
#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "components/mus/public/cpp/window_observer.h"
+#include "components/mus/public/cpp/window_tree_connection_observer.h"
#include "third_party/skia/include/core/SkColor.h"
#include "ui/compositor/paint_cache.h"
#include "ui/views/window/non_client_view.h"
@@ -30,7 +31,8 @@ namespace wm {
class FrameCaptionButtonContainerView;
class NonClientFrameViewMash : public views::NonClientFrameView,
- public mus::WindowObserver {
+ public mus::WindowObserver,
+ public mus::WindowTreeConnectionObserver {
public:
// Internal class name.
static const char kViewClassName[];
@@ -71,6 +73,11 @@ class NonClientFrameViewMash : public views::NonClientFrameView,
const gfx::Insets& old_client_area,
const std::vector<gfx::Rect>& old_additional_client_area) override;
void OnWindowDestroyed(mus::Window* window) override;
+ void OnWindowSharedPropertyChanged(
+ mus::Window* window,
+ const std::string& name,
+ const std::vector<uint8_t>* old_data,
+ const std::vector<uint8_t>* new_data) override;
// Get the view of the header.
views::View* GetHeaderView();
@@ -81,6 +88,12 @@ class NonClientFrameViewMash : public views::NonClientFrameView,
// Height from top of window to top of client area.
int NonClientTopBorderHeight() const;
+ void RemoveObservers();
+
+ // mus::WindowTreeConnectionObserver:
+ void OnWindowTreeFocusChanged(mus::Window* gained_focus,
+ mus::Window* lost_focus) override;
+
// Not owned.
views::Widget* frame_;
« no previous file with comments | « mash/task_viewer/task_viewer.cc ('k') | mash/wm/frame/non_client_frame_view_mash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698