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

Side by Side Diff: chrome/browser/views/frame/aero_glass_frame.cc

Issue 28126: Hide the autocomplete popup when the browser window is moved (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 #include "chrome/browser/views/frame/aero_glass_frame.h" 5 #include "chrome/browser/views/frame/aero_glass_frame.h"
6 6
7 #include <dwmapi.h> 7 #include <dwmapi.h>
8 8
9 #include "chrome/browser/browser_list.h" 9 #include "chrome/browser/browser_list.h"
10 #include "chrome/browser/views/frame/browser_view.h" 10 #include "chrome/browser/views/frame/browser_view.h"
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 bool AeroGlassFrame::GetAccelerator(int cmd_id, 98 bool AeroGlassFrame::GetAccelerator(int cmd_id,
99 views::Accelerator* accelerator) { 99 views::Accelerator* accelerator) {
100 return browser_view_->GetAccelerator(cmd_id, accelerator); 100 return browser_view_->GetAccelerator(cmd_id, accelerator);
101 } 101 }
102 102
103 void AeroGlassFrame::OnInitMenuPopup(HMENU menu, UINT position, 103 void AeroGlassFrame::OnInitMenuPopup(HMENU menu, UINT position,
104 BOOL is_system_menu) { 104 BOOL is_system_menu) {
105 browser_view_->PrepareToRunSystemMenu(menu); 105 browser_view_->PrepareToRunSystemMenu(menu);
106 } 106 }
107 107
108 void AeroGlassFrame::OnEnterSizeMove() {
109 browser_view_->WindowMoveOrResizeStarted();
110 }
111
108 void AeroGlassFrame::OnEndSession(BOOL ending, UINT logoff) { 112 void AeroGlassFrame::OnEndSession(BOOL ending, UINT logoff) {
109 BrowserList::WindowsSessionEnding(); 113 BrowserList::WindowsSessionEnding();
110 } 114 }
111 115
112 LRESULT AeroGlassFrame::OnMouseActivate(HWND window, UINT hittest_code, 116 LRESULT AeroGlassFrame::OnMouseActivate(HWND window, UINT hittest_code,
113 UINT message) { 117 UINT message) {
114 return browser_view_->ActivateAppModalDialog() ? MA_NOACTIVATEANDEAT 118 return browser_view_->ActivateAppModalDialog() ? MA_NOACTIVATEANDEAT
115 : MA_ACTIVATE; 119 : MA_ACTIVATE;
116 } 120 }
117 121
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 static bool initialized = false; 227 static bool initialized = false;
224 if (!initialized) { 228 if (!initialized) {
225 ResourceBundle &rb = ResourceBundle::GetSharedInstance(); 229 ResourceBundle &rb = ResourceBundle::GetSharedInstance();
226 for (int i = 0; i < kThrobberIconCount; ++i) { 230 for (int i = 0; i < kThrobberIconCount; ++i) {
227 throbber_icons_[i] = rb.LoadThemeIcon(IDR_THROBBER_01 + i); 231 throbber_icons_[i] = rb.LoadThemeIcon(IDR_THROBBER_01 + i);
228 DCHECK(throbber_icons_[i]); 232 DCHECK(throbber_icons_[i]);
229 } 233 }
230 initialized = true; 234 initialized = true;
231 } 235 }
232 } 236 }
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/aero_glass_frame.h ('k') | chrome/browser/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698