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

Side by Side Diff: views/widget/native_widget_win.h

Issue 6976040: Revert 86914 - Move a bunch of functions from Window onto Widget. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « views/widget/native_widget_views.cc ('k') | views/widget/native_widget_win.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 VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 6 #define VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE; 190 virtual gfx::Rect GetWindowScreenBounds() const OVERRIDE;
191 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE; 191 virtual gfx::Rect GetClientAreaScreenBounds() const OVERRIDE;
192 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 192 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
193 virtual void SetSize(const gfx::Size& size) OVERRIDE; 193 virtual void SetSize(const gfx::Size& size) OVERRIDE;
194 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE; 194 virtual void MoveAbove(gfx::NativeView native_view) OVERRIDE;
195 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE; 195 virtual void SetShape(gfx::NativeRegion shape) OVERRIDE;
196 virtual void Close() OVERRIDE; 196 virtual void Close() OVERRIDE;
197 virtual void CloseNow() OVERRIDE; 197 virtual void CloseNow() OVERRIDE;
198 virtual void Show() OVERRIDE; 198 virtual void Show() OVERRIDE;
199 virtual void Hide() OVERRIDE; 199 virtual void Hide() OVERRIDE;
200 virtual void SetOpacity(unsigned char opacity) OVERRIDE;
201 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE;
200 virtual bool IsVisible() const OVERRIDE; 202 virtual bool IsVisible() const OVERRIDE;
201 virtual void Activate() OVERRIDE;
202 virtual void Deactivate() OVERRIDE;
203 virtual bool IsActive() const OVERRIDE; 203 virtual bool IsActive() const OVERRIDE;
204 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE;
205 virtual void Maximize() OVERRIDE;
206 virtual void Minimize() OVERRIDE;
207 virtual bool IsMaximized() const OVERRIDE;
208 virtual bool IsMinimized() const OVERRIDE;
209 virtual void Restore() OVERRIDE;
210 virtual void SetOpacity(unsigned char opacity) OVERRIDE;
211 virtual bool IsAccessibleWidget() const OVERRIDE; 204 virtual bool IsAccessibleWidget() const OVERRIDE;
212 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE; 205 virtual bool ContainsNativeView(gfx::NativeView native_view) const OVERRIDE;
213 virtual void RunShellDrag(View* view, 206 virtual void RunShellDrag(View* view,
214 const ui::OSExchangeData& data, 207 const ui::OSExchangeData& data,
215 int operation) OVERRIDE; 208 int operation) OVERRIDE;
216 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE; 209 virtual void SchedulePaintInRect(const gfx::Rect& rect) OVERRIDE;
217 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; 210 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE;
218 211
219 protected: 212 protected:
220 // Overridden from MessageLoop::Observer: 213 // Overridden from MessageLoop::Observer:
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 void TrackMouseEvents(DWORD mouse_tracking_flags); 380 void TrackMouseEvents(DWORD mouse_tracking_flags);
388 381
389 // Called when a MSAA screen reader client is detected. 382 // Called when a MSAA screen reader client is detected.
390 virtual void OnScreenReaderDetected(); 383 virtual void OnScreenReaderDetected();
391 384
392 // Sets-up the focus manager with the view that should have focus when the 385 // Sets-up the focus manager with the view that should have focus when the
393 // window is shown the first time. If NULL is returned, the focus goes to the 386 // window is shown the first time. If NULL is returned, the focus goes to the
394 // button if there is one, otherwise the to the Cancel button. 387 // button if there is one, otherwise the to the Cancel button.
395 virtual void SetInitialFocus(); 388 virtual void SetInitialFocus();
396 389
397 // Executes the specified SC_command.
398 void ExecuteSystemMenuCommand(int command);
399
400 // The TooltipManager. 390 // The TooltipManager.
401 // WARNING: RootView's destructor calls into the TooltipManager. As such, this 391 // WARNING: RootView's destructor calls into the TooltipManager. As such, this
402 // must be destroyed AFTER root_view_. 392 // must be destroyed AFTER root_view_.
403 scoped_ptr<TooltipManagerWin> tooltip_manager_; 393 scoped_ptr<TooltipManagerWin> tooltip_manager_;
404 394
405 scoped_refptr<DropTargetWin> drop_target_; 395 scoped_refptr<DropTargetWin> drop_target_;
406 396
407 // Are a subclass of NativeWindowWin? 397 // Are a subclass of NativeWindowWin?
408 bool is_window_; 398 bool is_window_;
409 399
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 512
523 // Indicates if the |input_method_| is an InputMethodWin instance. 513 // Indicates if the |input_method_| is an InputMethodWin instance.
524 bool is_input_method_win_; 514 bool is_input_method_win_;
525 515
526 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin); 516 DISALLOW_COPY_AND_ASSIGN(NativeWidgetWin);
527 }; 517 };
528 518
529 } // namespace views 519 } // namespace views
530 520
531 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_ 521 #endif // VIEWS_WIDGET_NATIVE_WIDGET_WIN_H_
OLDNEW
« no previous file with comments | « views/widget/native_widget_views.cc ('k') | views/widget/native_widget_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698