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

Side by Side Diff: chrome/browser/views/location_bar_view.h

Issue 459005: Make sure we don't dismiss extension popups when the focus... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEWS_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 #include <map> 9 #include <map>
10 #include <vector> 10 #include <vector>
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after
387 virtual bool OnMousePressed(const views::MouseEvent& event); 387 virtual bool OnMousePressed(const views::MouseEvent& event);
388 388
389 // Overridden from LocationBarImageView. 389 // Overridden from LocationBarImageView.
390 virtual void ShowInfoBubble(); 390 virtual void ShowInfoBubble();
391 391
392 // Overridden from ImageLoadingTracker. 392 // Overridden from ImageLoadingTracker.
393 virtual void OnImageLoaded(SkBitmap* image, size_t index); 393 virtual void OnImageLoaded(SkBitmap* image, size_t index);
394 394
395 // Overridden from BrowserBubble::Delegate 395 // Overridden from BrowserBubble::Delegate
396 virtual void BubbleBrowserWindowClosing(BrowserBubble* bubble); 396 virtual void BubbleBrowserWindowClosing(BrowserBubble* bubble);
397 virtual void BubbleLostFocus(BrowserBubble* bubble); 397 virtual void BubbleLostFocus(BrowserBubble* bubble,
398 gfx::NativeView focused_view);
398 399
399 // Called to notify the PageAction that it should determine whether to be 400 // Called to notify the PageAction that it should determine whether to be
400 // visible or hidden. |contents| is the TabContents that is active, |url| 401 // visible or hidden. |contents| is the TabContents that is active, |url|
401 // is the current page URL. 402 // is the current page URL.
402 void UpdateVisibility(TabContents* contents, const GURL& url); 403 void UpdateVisibility(TabContents* contents, const GURL& url);
403 404
404 // Either notify listners or show a popup depending on the page action. 405 // Either notify listners or show a popup depending on the page action.
405 void ExecuteAction(int button); 406 void ExecuteAction(int button);
406 407
407 private: 408 private:
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
590 // The positioner that places the omnibox and info bubbles. 591 // The positioner that places the omnibox and info bubbles.
591 const BubblePositioner* bubble_positioner_; 592 const BubblePositioner* bubble_positioner_;
592 593
593 // Storage of string needed for accessibility. 594 // Storage of string needed for accessibility.
594 std::wstring accessible_name_; 595 std::wstring accessible_name_;
595 596
596 DISALLOW_COPY_AND_ASSIGN(LocationBarView); 597 DISALLOW_COPY_AND_ASSIGN(LocationBarView);
597 }; 598 };
598 599
599 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ 600 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698