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: chrome/browser/views/frame/browser_view.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/browser_view.h ('k') | chrome/browser/views/frame/opaque_frame.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 "base/command_line.h" 5 #include "base/command_line.h"
6 6
7 #include "chrome/browser/views/frame/browser_view.h" 7 #include "chrome/browser/views/frame/browser_view.h"
8 8
9 #include "base/file_version_info.h" 9 #include "base/file_version_info.h"
10 #include "base/time.h" 10 #include "base/time.h"
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 240
241 status_bubble_->Reposition(); 241 status_bubble_->Reposition();
242 242
243 BookmarkBubbleView::Hide(); 243 BookmarkBubbleView::Hide();
244 244
245 // Close the omnibox popup, if any. 245 // Close the omnibox popup, if any.
246 if (toolbar_->GetLocationBarView()) 246 if (toolbar_->GetLocationBarView())
247 toolbar_->GetLocationBarView()->location_entry()->ClosePopup(); 247 toolbar_->GetLocationBarView()->location_entry()->ClosePopup();
248 } 248 }
249 249
250 void BrowserView::WindowMoveOrResizeStarted() {
251 TabContents* tab_contents = GetSelectedTabContents();
252 if (tab_contents && tab_contents->AsWebContents())
253 tab_contents->AsWebContents()->WindowMoveOrResizeStarted();
254 }
255
250 gfx::Rect BrowserView::GetToolbarBounds() const { 256 gfx::Rect BrowserView::GetToolbarBounds() const {
251 return toolbar_->bounds(); 257 return toolbar_->bounds();
252 } 258 }
253 259
254 gfx::Rect BrowserView::GetClientAreaBounds() const { 260 gfx::Rect BrowserView::GetClientAreaBounds() const {
255 gfx::Rect container_bounds = contents_container_->bounds(); 261 gfx::Rect container_bounds = contents_container_->bounds();
256 gfx::Point container_origin = container_bounds.origin(); 262 gfx::Point container_origin = container_bounds.origin();
257 ConvertPointToView(this, GetParent(), &container_origin); 263 ConvertPointToView(this, GetParent(), &container_origin);
258 container_bounds.set_origin(container_origin); 264 container_bounds.set_origin(container_origin);
259 return container_bounds; 265 return container_bounds;
(...skipping 1382 matching lines...) Expand 10 before | Expand all | Expand 10 after
1642 1648
1643 // static 1649 // static
1644 void BrowserView::InitClass() { 1650 void BrowserView::InitClass() {
1645 static bool initialized = false; 1651 static bool initialized = false;
1646 if (!initialized) { 1652 if (!initialized) {
1647 ResourceBundle& rb = ResourceBundle::GetSharedInstance(); 1653 ResourceBundle& rb = ResourceBundle::GetSharedInstance();
1648 default_favicon_ = *rb.GetBitmapNamed(IDR_DEFAULT_FAVICON); 1654 default_favicon_ = *rb.GetBitmapNamed(IDR_DEFAULT_FAVICON);
1649 initialized = true; 1655 initialized = true;
1650 } 1656 }
1651 } 1657 }
OLDNEW
« no previous file with comments | « chrome/browser/views/frame/browser_view.h ('k') | chrome/browser/views/frame/opaque_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698