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

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

Issue 10867096: Make HWNDMessageHandler subclass WindowImpl. (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
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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual views::NativeWidget* AsNativeWidget() OVERRIDE; 68 virtual views::NativeWidget* AsNativeWidget() OVERRIDE;
69 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE; 69 virtual const views::NativeWidget* AsNativeWidget() const OVERRIDE;
70 virtual void InitSystemContextMenu() OVERRIDE; 70 virtual void InitSystemContextMenu() OVERRIDE;
71 virtual int GetMinimizeButtonOffset() const OVERRIDE; 71 virtual int GetMinimizeButtonOffset() const OVERRIDE;
72 virtual void TabStripDisplayModeChanged() OVERRIDE; 72 virtual void TabStripDisplayModeChanged() OVERRIDE;
73 73
74 // Overriden from views::ImageButton override: 74 // Overriden from views::ImageButton override:
75 virtual void ButtonPressed(views::Button* sender, 75 virtual void ButtonPressed(views::Button* sender,
76 const ui::Event& event) OVERRIDE; 76 const ui::Event& event) OVERRIDE;
77 77
78 // Overridden from WindowImpl:
79 virtual LRESULT OnWndProc(UINT message,
80 WPARAM w_param,
81 LPARAM l_param) OVERRIDE;
82
83 private: 78 private:
84 // Updates the DWM with the frame bounds. 79 // Updates the DWM with the frame bounds.
85 void UpdateDWMFrame(); 80 void UpdateDWMFrame();
86 81
87 // Builds the correct menu for when we have minimal chrome. 82 // Builds the correct menu for when we have minimal chrome.
88 void BuildSystemMenuForBrowserWindow(); 83 void BuildSystemMenuForBrowserWindow();
89 void BuildSystemMenuForAppOrPopupWindow(); 84 void BuildSystemMenuForAppOrPopupWindow();
90 85
91 // Adds optional debug items for frame type toggling. 86 // Adds optional debug items for frame type toggling.
92 void AddFrameToggleItems(); 87 void AddFrameToggleItems();
(...skipping 29 matching lines...) Expand all
122 // The wrapped system menu itself. 117 // The wrapped system menu itself.
123 scoped_ptr<views::NativeMenuWin> system_menu_; 118 scoped_ptr<views::NativeMenuWin> system_menu_;
124 119
125 // See CacheMinimizeButtonDelta() for details about this member. 120 // See CacheMinimizeButtonDelta() for details about this member.
126 int cached_minimize_button_x_delta_; 121 int cached_minimize_button_x_delta_;
127 122
128 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin); 123 DISALLOW_COPY_AND_ASSIGN(BrowserFrameWin);
129 }; 124 };
130 125
131 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_ 126 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_BROWSER_FRAME_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/external_tab_container_win.cc ('k') | chrome/browser/ui/views/frame/browser_frame_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698