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

Side by Side Diff: chrome/browser/ui/views/chrome_views_delegate.h

Issue 55303006: Make sure the non browser/non app widget is fully visible when created on ash (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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_CHROME_VIEWS_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
11 #include "ui/base/accessibility/accessibility_types.h" 11 #include "ui/base/accessibility/accessibility_types.h"
12 #include "ui/views/views_delegate.h" 12 #include "ui/views/views_delegate.h"
13 13
14 class ChromeViewsDelegate : public views::ViewsDelegate { 14 class ChromeViewsDelegate : public views::ViewsDelegate {
15 public: 15 public:
16 ChromeViewsDelegate() {} 16 ChromeViewsDelegate() {}
17 virtual ~ChromeViewsDelegate() {} 17 virtual ~ChromeViewsDelegate() {}
18 18
19 // Overridden from views::ViewsDelegate: 19 // Overridden from views::ViewsDelegate:
20 virtual void SaveWindowPlacement(const views::Widget* window, 20 virtual void SaveWindowPlacement(const views::Widget* window,
21 const std::string& window_name, 21 const std::string& window_name,
22 const gfx::Rect& bounds, 22 const gfx::Rect& bounds,
23 ui::WindowShowState show_state) OVERRIDE; 23 ui::WindowShowState show_state) OVERRIDE;
24 virtual bool GetSavedWindowPlacement( 24 virtual bool GetSavedWindowPlacement(
25 const views::Widget* widget,
25 const std::string& window_name, 26 const std::string& window_name,
26 gfx::Rect* bounds, 27 gfx::Rect* bounds,
27 ui::WindowShowState* show_state) const OVERRIDE; 28 ui::WindowShowState* show_state) const OVERRIDE;
28 virtual void NotifyAccessibilityEvent( 29 virtual void NotifyAccessibilityEvent(
29 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE; 30 views::View* view, ui::AccessibilityTypes::Event event_type) OVERRIDE;
30 virtual void NotifyMenuItemFocused(const string16& menu_name, 31 virtual void NotifyMenuItemFocused(const string16& menu_name,
31 const string16& menu_item_name, 32 const string16& menu_item_name,
32 int item_index, 33 int item_index,
33 int item_count, 34 int item_count,
34 bool has_submenu) OVERRIDE; 35 bool has_submenu) OVERRIDE;
(...skipping 12 matching lines...) Expand all
47 virtual void OnBeforeWidgetInit( 48 virtual void OnBeforeWidgetInit(
48 views::Widget::InitParams* params, 49 views::Widget::InitParams* params,
49 views::internal::NativeWidgetDelegate* delegate) OVERRIDE; 50 views::internal::NativeWidgetDelegate* delegate) OVERRIDE;
50 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE; 51 virtual base::TimeDelta GetDefaultTextfieldObscuredRevealDuration() OVERRIDE;
51 52
52 private: 53 private:
53 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate); 54 DISALLOW_COPY_AND_ASSIGN(ChromeViewsDelegate);
54 }; 55 };
55 56
56 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_ 57 #endif // CHROME_BROWSER_UI_VIEWS_CHROME_VIEWS_DELEGATE_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace_layout_manager_unittest.cc ('k') | chrome/browser/ui/views/chrome_views_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698