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

Side by Side Diff: chrome/browser/ui/views/frame/browser_frame_win.h

Issue 10870110: Move more code from NWW to HWNDMessageHandler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 3 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 | « no previous file | chrome/browser/ui/views/frame/browser_frame_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/views/frame/browser_frame.h" 10 #include "chrome/browser/ui/views/frame/browser_frame.h"
(...skipping 26 matching lines...) Expand all
37 37
38 BrowserView* browser_view() const { return browser_view_; } 38 BrowserView* browser_view() const { return browser_view_; }
39 39
40 // Explicitly sets how windows are shown. Use a value of -1 to give the 40 // Explicitly sets how windows are shown. Use a value of -1 to give the
41 // default behavior. This is used during testing and not generally useful 41 // default behavior. This is used during testing and not generally useful
42 // otherwise. 42 // otherwise.
43 static void SetShowState(int state); 43 static void SetShowState(int state);
44 44
45 protected: 45 protected:
46 // Overridden from views::NativeWidgetWin: 46 // Overridden from views::NativeWidgetWin:
47 virtual int GetShowState() const OVERRIDE; 47 virtual int GetInitialShowState() const OVERRIDE;
48 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE; 48 virtual bool GetClientAreaInsets(gfx::Insets* insets) const OVERRIDE;
49 virtual void UpdateFrameAfterFrameChange() OVERRIDE; 49 virtual void UpdateFrameAfterFrameChange() OVERRIDE;
50 virtual void OnEndSession(BOOL ending, UINT logoff) OVERRIDE; 50 virtual void OnEndSession(BOOL ending, UINT logoff) OVERRIDE;
51 virtual void OnInitMenuPopup(HMENU menu, 51 virtual void OnInitMenuPopup(HMENU menu,
52 UINT position, 52 UINT position,
53 BOOL is_system_menu) OVERRIDE; 53 BOOL is_system_menu) OVERRIDE;
54 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE; 54 virtual void OnWindowPosChanged(WINDOWPOS* window_pos) OVERRIDE;
55 virtual void OnScreenReaderDetected() OVERRIDE; 55 virtual void OnScreenReaderDetected() OVERRIDE;
56 virtual bool ShouldUseNativeFrame() const OVERRIDE; 56 virtual bool ShouldUseNativeFrame() const OVERRIDE;
57 virtual void Show() OVERRIDE; 57 virtual void Show() OVERRIDE;
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // The wrapped system menu itself. 121 // The wrapped system menu itself.
122 scoped_ptr<views::NativeMenuWin> system_menu_; 122 scoped_ptr<views::NativeMenuWin> system_menu_;
123 123
124 // See CacheMinimizeButtonDelta() for details about this member. 124 // See CacheMinimizeButtonDelta() for details about this member.
125 int cached_minimize_button_x_delta_; 125 int cached_minimize_button_x_delta_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); 127 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin);
128 }; 128 };
129 129
130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ 130 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_frame_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698