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

Side by Side Diff: ui/views/cocoa/bridged_native_widget.h

Issue 1257603006: Refactoring for the InputMethod & InputMethodDelegate interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Sadrul's comment. Created 5 years, 4 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 | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COCOA_BRIDGED_NATIVE_WIDGET_H_ 5 #ifndef UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 6 #define UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 // raised above their parent when window z-order changes. 165 // raised above their parent when window z-order changes.
166 BridgedNativeWidgetOwner* parent() { return parent_; } 166 BridgedNativeWidgetOwner* parent() { return parent_; }
167 const std::vector<BridgedNativeWidget*>& child_windows() { 167 const std::vector<BridgedNativeWidget*>& child_windows() {
168 return child_windows_; 168 return child_windows_;
169 } 169 }
170 170
171 bool target_fullscreen_state() const { return target_fullscreen_state_; } 171 bool target_fullscreen_state() const { return target_fullscreen_state_; }
172 bool window_visible() { return window_visible_; } 172 bool window_visible() { return window_visible_; }
173 173
174 // Overridden from ui::internal::InputMethodDelegate: 174 // Overridden from ui::internal::InputMethodDelegate:
175 bool DispatchKeyEventPostIME(const ui::KeyEvent& key) override; 175 ui::EventDispatchDetails DispatchKeyEventPostIME(ui::KeyEvent* key) override;
176 176
177 private: 177 private:
178 friend class test::BridgedNativeWidgetTestApi; 178 friend class test::BridgedNativeWidgetTestApi;
179 179
180 // Closes all child windows. BridgedNativeWidget children will be destroyed. 180 // Closes all child windows. BridgedNativeWidget children will be destroyed.
181 void RemoveOrDestroyChildren(); 181 void RemoveOrDestroyChildren();
182 182
183 // Notify descendants of a visibility change. 183 // Notify descendants of a visibility change.
184 void NotifyVisibilityChangeDown(); 184 void NotifyVisibilityChangeDown();
185 185
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 // If true, the window has been made visible or changed shape and the window 279 // If true, the window has been made visible or changed shape and the window
280 // shadow needs to be invalidated when a frame is received for the new shape. 280 // shadow needs to be invalidated when a frame is received for the new shape.
281 bool invalidate_shadow_on_frame_swap_ = false; 281 bool invalidate_shadow_on_frame_swap_ = false;
282 282
283 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget); 283 DISALLOW_COPY_AND_ASSIGN(BridgedNativeWidget);
284 }; 284 };
285 285
286 } // namespace views 286 } // namespace views
287 287
288 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_ 288 #endif // UI_VIEWS_COCOA_BRIDGED_NATIVE_WIDGET_H_
OLDNEW
« no previous file with comments | « ui/views/cocoa/bridged_content_view.mm ('k') | ui/views/cocoa/bridged_native_widget.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698