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

Side by Side Diff: ui/views/controls/native/native_view_host.h

Issue 1746013002: Hide/show widget on Windows screen lock/unlock Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits. 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 unified diff | Download patch
« no previous file with comments | « no previous file | ui/views/controls/native/native_view_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ 5 #ifndef UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_
6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ 6 #define UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void NativeViewDestroyed(); 76 void NativeViewDestroyed();
77 77
78 // Overridden from View: 78 // Overridden from View:
79 gfx::Size GetPreferredSize() const override; 79 gfx::Size GetPreferredSize() const override;
80 void Layout() override; 80 void Layout() override;
81 void OnPaint(gfx::Canvas* canvas) override; 81 void OnPaint(gfx::Canvas* canvas) override;
82 void VisibilityChanged(View* starting_from, bool is_visible) override; 82 void VisibilityChanged(View* starting_from, bool is_visible) override;
83 void OnFocus() override; 83 void OnFocus() override;
84 gfx::NativeViewAccessible GetNativeViewAccessible() override; 84 gfx::NativeViewAccessible GetNativeViewAccessible() override;
85 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override; 85 gfx::NativeCursor GetCursor(const ui::MouseEvent& event) override;
86 void OnSoftVisibilityChanged(bool visible) override;
86 87
87 protected: 88 protected:
88 bool GetNeedsNotificationWhenVisibleBoundsChange() const override; 89 bool GetNeedsNotificationWhenVisibleBoundsChange() const override;
89 void OnVisibleBoundsChanged() override; 90 void OnVisibleBoundsChanged() override;
90 void ViewHierarchyChanged( 91 void ViewHierarchyChanged(
91 const ViewHierarchyChangedDetails& details) override; 92 const ViewHierarchyChangedDetails& details) override;
92 const char* GetClassName() const override; 93 const char* GetClassName() const override;
93 94
94 private: 95 private:
95 friend class test::NativeViewHostTestBase; 96 friend class test::NativeViewHostTestBase;
(...skipping 26 matching lines...) Expand all
122 123
123 // Color to paint in the background while resizing. 124 // Color to paint in the background while resizing.
124 SkColor resize_background_color_; 125 SkColor resize_background_color_;
125 126
126 DISALLOW_COPY_AND_ASSIGN(NativeViewHost); 127 DISALLOW_COPY_AND_ASSIGN(NativeViewHost);
127 }; 128 };
128 129
129 } // namespace views 130 } // namespace views
130 131
131 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_ 132 #endif // UI_VIEWS_CONTROLS_NATIVE_NATIVE_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/controls/native/native_view_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698