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

Side by Side Diff: chrome/browser/views/frame/opaque_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
« no previous file with comments | « chrome/browser/views/frame/opaque_frame.h ('k') | chrome/common/render_messages_internal.h » ('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) 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/opaque_frame.h" 5 #include "chrome/browser/views/frame/opaque_frame.h"
6 6
7 #include "chrome/browser/browser_list.h" 7 #include "chrome/browser/browser_list.h"
8 #include "chrome/browser/views/frame/browser_view.h" 8 #include "chrome/browser/views/frame/browser_view.h"
9 #include "chrome/browser/views/frame/opaque_non_client_view.h" 9 #include "chrome/browser/views/frame/opaque_non_client_view.h"
10 #include "chrome/browser/views/tabs/tab_strip.h" 10 #include "chrome/browser/views/tabs/tab_strip.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 } 82 }
83 83
84 bool OpaqueFrame::GetAccelerator(int cmd_id, views::Accelerator* accelerator) { 84 bool OpaqueFrame::GetAccelerator(int cmd_id, views::Accelerator* accelerator) {
85 return browser_view_->GetAccelerator(cmd_id, accelerator); 85 return browser_view_->GetAccelerator(cmd_id, accelerator);
86 } 86 }
87 87
88 void OpaqueFrame::OnEndSession(BOOL ending, UINT logoff) { 88 void OpaqueFrame::OnEndSession(BOOL ending, UINT logoff) {
89 BrowserList::WindowsSessionEnding(); 89 BrowserList::WindowsSessionEnding();
90 } 90 }
91 91
92 void OpaqueFrame::OnEnterSizeMove() {
93 browser_view_->WindowMoveOrResizeStarted();
94 }
95
92 void OpaqueFrame::OnInitMenuPopup(HMENU menu, UINT position, 96 void OpaqueFrame::OnInitMenuPopup(HMENU menu, UINT position,
93 BOOL is_system_menu) { 97 BOOL is_system_menu) {
94 browser_view_->PrepareToRunSystemMenu(menu); 98 browser_view_->PrepareToRunSystemMenu(menu);
95 } 99 }
96 100
97 LRESULT OpaqueFrame::OnMouseActivate(HWND window, UINT hittest_code, 101 LRESULT OpaqueFrame::OnMouseActivate(HWND window, UINT hittest_code,
98 UINT message) { 102 UINT message) {
99 return browser_view_->ActivateAppModalDialog() ? MA_NOACTIVATEANDEAT 103 return browser_view_->ActivateAppModalDialog() ? MA_NOACTIVATEANDEAT
100 : MA_ACTIVATE; 104 : MA_ACTIVATE;
101 } 105 }
(...skipping 24 matching lines...) Expand all
126 } 130 }
127 131
128 /////////////////////////////////////////////////////////////////////////////// 132 ///////////////////////////////////////////////////////////////////////////////
129 // OpaqueFrame, private: 133 // OpaqueFrame, private:
130 134
131 OpaqueNonClientView* OpaqueFrame::GetOpaqueNonClientView() const { 135 OpaqueNonClientView* OpaqueFrame::GetOpaqueNonClientView() const {
132 // We can safely assume that this conversion is true. 136 // We can safely assume that this conversion is true.
133 return static_cast<OpaqueNonClientView*>(non_client_view_); 137 return static_cast<OpaqueNonClientView*>(non_client_view_);
134 } 138 }
135 139
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/opaque_frame.h ('k') | chrome/common/render_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698